[RocksDB] Fix unit test

Summary: fix a bug in D19047, which caused  DBTest.RecoverDuringMemtableCompaction to fail.

Test Plan: unit test

Reviewers: sdong, igor

Reviewed By: igor

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19155
main
Haobo Xu 11 years ago
parent edd47c5104
commit 167738256f
  1. 1
      table/block_prefix_index.cc

@ -111,6 +111,7 @@ class BlockPrefixIndex::Builder {
if (distance <= 1) {
prev->end_block = current->end_block;
prev->num_blocks = prev->end_block - prev->start_block + 1;
num_blocks_per_bucket[bucket] += (current->num_blocks + distance - 1);
continue;
}
}

Loading…
Cancel
Save