From 90cfd46458d9b1a6751580cfad5c07867aba8452 Mon Sep 17 00:00:00 2001 From: Aaron Gao Date: Tue, 4 Apr 2017 14:17:16 -0700 Subject: 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 --- memtable/hash_linklist_rep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memtable') 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 -- cgit v1.2.3-70-g09d2