aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/table
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-12-12 02:17:17 +0100
committerGavin Andresen <[email protected]>2013-01-23 10:41:44 -0500
commit4786302fb99f930afca1e778255b72c6999ca480 (patch)
tree8c92a473f0c8772d152561d909fedce4b8ed5d2f /src/leveldb/table
parentMerge pull request #2114 from sipa/strictstrict (diff)
downloaddiscoin-4786302fb99f930afca1e778255b72c6999ca480.tar.xz
discoin-4786302fb99f930afca1e778255b72c6999ca480.zip
Replace leveldb/ with vanilla 1.7.0
Diffstat (limited to 'src/leveldb/table')
-rw-r--r--src/leveldb/table/block.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leveldb/table/block.cc b/src/leveldb/table/block.cc
index 199d45377..ab83c1112 100644
--- a/src/leveldb/table/block.cc
+++ b/src/leveldb/table/block.cc
@@ -162,8 +162,8 @@ class Block::Iter : public Iterator {
}
virtual void Seek(const Slice& target) {
- // Binary search in restart array to find the first restart point
- // with a key >= target
+ // Binary search in restart array to find the last restart point
+ // with a key < target
uint32_t left = 0;
uint32_t right = num_restarts_ - 1;
while (left < right) {