summaryrefslogtreecommitdiff
path: root/memtable
diff options
context:
space:
mode:
authorAaron Gao <gzh@fb.com>2017-04-04 14:17:16 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2017-04-04 14:24:20 -0700
commit90cfd46458d9b1a6751580cfad5c07867aba8452 (patch)
tree78fa099157f861b83aaffe9043bec7886984d126 /memtable
parente2c6c063664cf66468f7fdcf4a3a5e4ed7e7bb2f (diff)
update IterKey that can get user key and internal key explicitly
Summary: to void future bug that caused by the mix of userkey/internalkey Closes https://github.com/facebook/rocksdb/pull/2084 Differential Revision: D4825889 Pulled By: lightmark fbshipit-source-id: 28411db
Diffstat (limited to 'memtable')
-rw-r--r--memtable/hash_linklist_rep.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/memtable/hash_linklist_rep.cc b/memtable/hash_linklist_rep.cc
index 7caf66531..df2cf6cef 100644
--- a/memtable/hash_linklist_rep.cc
+++ b/memtable/hash_linklist_rep.cc
@@ -433,7 +433,7 @@ class HashLinkListRep : public MemTableRep {
} else {
IterKey encoded_key;
encoded_key.EncodeLengthPrefixedKey(k);
- skip_list_iter_->Seek(encoded_key.GetKey().data());
+ skip_list_iter_->Seek(encoded_key.GetUserKey().data());
}
} else {
// The bucket is organized as a linked list