]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/include/rocksdb/persistent_cache.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / rocksdb / include / rocksdb / persistent_cache.h
index 9651812c8d6b3a007d8a4f337cdc853da87291bd..e2dcfcac3ad48dd123c5dd4cb5495842629115e4 100644 (file)
@@ -56,6 +56,12 @@ class PersistentCache {
   virtual StatsType Stats() = 0;
 
   virtual std::string GetPrintableOptions() const = 0;
+
+  // Return a new numeric id.  May be used by multiple clients who are
+  // sharding the same persistent cache to partition the key space.  Typically
+  // the client will allocate a new id at startup and prepend the id to its
+  // cache keys.
+  virtual uint64_t NewId() = 0;
 };
 
 // Factor method to create a new persistent cache