From: Haobo Xu Date: Thu, 19 Jun 2014 08:07:49 +0000 (-0700) Subject: [RocksDB] Fix unit test X-Git-Tag: rocksdb-3.2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=167738256f5345804a7d3f922ce6258dd47d1178;p=rocksdb.git [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 --- diff --git a/table/block_prefix_index.cc b/table/block_prefix_index.cc index f3572f64d..4ed3b015c 100644 --- a/table/block_prefix_index.cc +++ b/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; } }