diff --git a/db/write_batch.cc b/db/write_batch.cc index fa01e82db1..c04930bbf1 100644 --- a/db/write_batch.cc +++ b/db/write_batch.cc @@ -58,6 +58,7 @@ bool WriteBatch::Handler::Continue() { void WriteBatch::Clear() { rep_.clear(); + rep_.resize(kHeader); } int WriteBatch::Count() const {