From ae8a46c492e0ea37770c43d618913f5a1b41cc49 Mon Sep 17 00:00:00 2001 From: bluebore Date: Fri, 5 Jun 2015 19:03:03 +0800 Subject: [PATCH] BuildBatchGroup no longer skip NULL batch, for TEST_CompactMemTable --- db/db_impl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_impl.cc b/db/db_impl.cc index 49b9595..d405e58 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1275,6 +1275,8 @@ WriteBatch* DBImpl::BuildBatchGroup(Writer** last_writer) { WriteBatchInternal::Append(result, first->batch); } WriteBatchInternal::Append(result, w->batch); + } else { + break; } *last_writer = w; }