summaryrefslogtreecommitdiff
path: root/table/block_builder.cc
diff options
context:
space:
mode:
authordgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529>2011-05-21 02:17:43 +0000
committerdgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529>2011-05-21 02:17:43 +0000
commitda7990950787257cb312ca562ce5977749afc3e9 (patch)
tree91fe98f6e14e74c794392b22105a47a58499edff /table/block_builder.cc
parent3c111335a760d8d82414b91a54f740df09dd4f8f (diff)
downloadleveldb-da7990950787257cb312ca562ce5977749afc3e9.tar.gz
sync with upstream @ 21409451
Check the NEWS file for details of what changed. git-svn-id: https://leveldb.googlecode.com/svn/trunk@28 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'table/block_builder.cc')
-rw-r--r--table/block_builder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/block_builder.cc b/table/block_builder.cc
index dc958c8..d2ffa21 100644
--- a/table/block_builder.cc
+++ b/table/block_builder.cc
@@ -80,7 +80,7 @@ void BlockBuilder::Add(const Slice& key, const Slice& value) {
if (counter_ < options_->block_restart_interval) {
// See how much sharing to do with previous string
const size_t min_length = std::min(last_key_piece.size(), key.size());
- while ((shared < min_length) && (last_key_[shared] == key[shared])) {
+ while ((shared < min_length) && (last_key_piece[shared] == key[shared])) {
shared++;
}
} else {