From 4786302fb99f930afca1e778255b72c6999ca480 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 12 Dec 2012 02:17:17 +0100 Subject: Replace leveldb/ with vanilla 1.7.0 --- src/leveldb/table/block.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/leveldb/table') diff --git a/src/leveldb/table/block.cc b/src/leveldb/table/block.cc index 199d453773..ab83c1112c 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) { -- cgit v1.2.3