1
0
mirror of https://github.com/google/leveldb.git synced 2025-04-25 14:00:27 +08:00
This commit is contained in:
Jessie Tuan 2025-02-06 19:40:03 +08:00 committed by GitHub
commit ece1a9056d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions
include/leveldb

View File

@ -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

View File

@ -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