mirror of
https://github.com/google/leveldb.git
synced 2025-04-25 14:00:27 +08:00
Merge 1e6b5009c9
into ac691084fd
This commit is contained in:
commit
ece1a9056d
include/leveldb
@ -79,6 +79,7 @@ class LEVELDB_EXPORT Cache {
|
||||
// underlying entry will be kept around until all existing handles
|
||||
// to it have been released.
|
||||
virtual void Erase(const Slice& key) = 0;
|
||||
virtual void AddSome(const Entity& value) = 0;
|
||||
|
||||
// Return a new numeric id. May be used by multiple clients who are
|
||||
// sharing the same cache to partition the key space. Typically the
|
||||
|
@ -25,7 +25,7 @@ class LEVELDB_EXPORT Comparator {
|
||||
// < 0 iff "a" < "b",
|
||||
// == 0 iff "a" == "b",
|
||||
// > 0 iff "a" > "b"
|
||||
virtual int Compare(const Slice& a, const Slice& b) const = 0;
|
||||
virtual int Compare(const Slice& a, const Slice& c) const = 0;
|
||||
|
||||
// The name of the comparator. Used to check for comparator
|
||||
// mismatches (i.e., a DB created with one comparator is
|
||||
|
Loading…
Reference in New Issue
Block a user