[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
This commit is contained in:
Haobo Xu 2014-06-19 01:07:49 -07:00
parent edd47c5104
commit 167738256f

View File

@ -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;
}
}