[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
main
Haobo Xu 11 years ago
parent e94eea4527
commit bf4a48ccb3
  1. 1
      db/write_batch.cc

@ -58,6 +58,7 @@ bool WriteBatch::Handler::Continue() {
void WriteBatch::Clear() {
rep_.clear();
rep_.resize(kHeader);
}
int WriteBatch::Count() const {

Loading…
Cancel
Save