• H
    [RocksDB] Generalize prefix-aware iterator to be used for more than one Seek · fd204488
    Haobo Xu 提交于
    Summary: Added a prefix_seek flag in ReadOptions to indicate that Seek is prefix aware(might not return data with different prefix), and also not bound to a specific prefix. Multiple Seeks and range scans can be invoked on the same iterator. If a specific prefix is specified, this flag will be ignored. Just a quick prototype that works for PrefixHashRep, the new lockless memtable could be easily extended with this support too.
    
    Test Plan: test it on Leaf
    
    Reviewers: dhruba, kailiu, sdong, igor
    
    Reviewed By: igor
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D13929
    fd204488
memtable.h 6.1 KB