From 1ec9c2ae8c3733621c5bb6c56b3e54f757a8b4cc Mon Sep 17 00:00:00 2001 From: janicetimelessbeauty Date: Sun, 8 Oct 2023 20:50:36 +1100 Subject: [PATCH 1/2] first --- include/leveldb/cache.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/leveldb/cache.h b/include/leveldb/cache.h index a94c68398f..d51a0fcc24 100644 --- a/include/leveldb/cache.h +++ b/include/leveldb/cache.h @@ -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 From 1e6b5009c9c9c33005076ea5fb9dc1fed249e534 Mon Sep 17 00:00:00 2001 From: janicetimelessbeauty Date: Sun, 8 Oct 2023 20:58:29 +1100 Subject: [PATCH 2/2] fkfk --- include/leveldb/comparator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/leveldb/comparator.h b/include/leveldb/comparator.h index a85b51ebd8..026028028d 100644 --- a/include/leveldb/comparator.h +++ b/include/leveldb/comparator.h @@ -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