[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:
parent
edd47c5104
commit
167738256f
@ -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…
Reference in New Issue
Block a user