@ -449,7 +449,7 @@ void MemTable::Update(SequenceNumber seq,
Slice mem_key = lkey . memtable_key ( ) ;
Slice mem_key = lkey . memtable_key ( ) ;
std : : unique_ptr < MemTableRep : : Iterator > iter (
std : : unique_ptr < MemTableRep : : Iterator > iter (
table_ - > GetIterator ( lkey . user_key ( ) ) ) ;
table_ - > GetDynamicPrefix Iterator ( ) ) ;
iter - > Seek ( lkey . internal_key ( ) , mem_key . data ( ) ) ;
iter - > Seek ( lkey . internal_key ( ) , mem_key . data ( ) ) ;
if ( iter - > Valid ( ) ) {
if ( iter - > Valid ( ) ) {
@ -508,7 +508,7 @@ bool MemTable::UpdateCallback(SequenceNumber seq,
Slice memkey = lkey . memtable_key ( ) ;
Slice memkey = lkey . memtable_key ( ) ;
std : : unique_ptr < MemTableRep : : Iterator > iter (
std : : unique_ptr < MemTableRep : : Iterator > iter (
table_ - > GetIterator ( lkey . user_key ( ) ) ) ;
table_ - > GetDynamicPrefix Iterator ( ) ) ;
iter - > Seek ( lkey . internal_key ( ) , memkey . data ( ) ) ;
iter - > Seek ( lkey . internal_key ( ) , memkey . data ( ) ) ;
if ( iter - > Valid ( ) ) {
if ( iter - > Valid ( ) ) {
@ -583,7 +583,7 @@ size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) {
// reps). By passing in the user key, we allow efficient iterator creation.
// reps). By passing in the user key, we allow efficient iterator creation.
// The iterator only needs to be ordered within the same user key.
// The iterator only needs to be ordered within the same user key.
std : : unique_ptr < MemTableRep : : Iterator > iter (
std : : unique_ptr < MemTableRep : : Iterator > iter (
table_ - > GetIterator ( key . user_key ( ) ) ) ;
table_ - > GetDynamicPrefix Iterator ( ) ) ;
iter - > Seek ( key . internal_key ( ) , memkey . data ( ) ) ;
iter - > Seek ( key . internal_key ( ) , memkey . data ( ) ) ;
size_t num_successive_merges = 0 ;
size_t num_successive_merges = 0 ;
@ -610,7 +610,7 @@ size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) {
void MemTableRep : : Get ( const LookupKey & k , void * callback_args ,
void MemTableRep : : Get ( const LookupKey & k , void * callback_args ,
bool ( * callback_func ) ( void * arg , const char * entry ) ) {
bool ( * callback_func ) ( void * arg , const char * entry ) ) {
auto iter = GetIterator ( k . user_key ( ) ) ;
auto iter = GetDynamicPrefix Iterator ( ) ;
for ( iter - > Seek ( k . internal_key ( ) , k . memtable_key ( ) . data ( ) ) ;
for ( iter - > Seek ( k . internal_key ( ) , k . memtable_key ( ) . data ( ) ) ;
iter - > Valid ( ) & & callback_func ( callback_args , iter - > key ( ) ) ;
iter - > Valid ( ) & & callback_func ( callback_args , iter - > key ( ) ) ;
iter - > Next ( ) ) {
iter - > Next ( ) ) {