Skip to content

Commit bf4a48c

Browse files
committed
[RocksDB] [Performance Branch] Revert previous patch.
Summary: The previous patch is wrong. rep_.resize(kHeader) just resets the header portion to zero, and should not cause a re-allocation if g++ does it right. I will go ahead and revert it. Test Plan: make check Reviewers: dhruba, sdong CC: leveldb Differential Revision: https://reviews.facebook.net/D14793
1 parent e94eea4 commit bf4a48c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

db/write_batch.cc

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ bool WriteBatch::Handler::Continue() {
5858

5959
void WriteBatch::Clear() {
6060
rep_.clear();
61+
rep_.resize(kHeader);
6162
}
6263

6364
int WriteBatch::Count() const {

0 commit comments

Comments
 (0)