]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/KeyValueDB: Add raw_key() interface for IteratorImpl
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Sun, 12 Apr 2015 03:28:13 +0000 (11:28 +0800)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:38 +0000 (13:39 -0400)
raw_key() is useful to split out the prefix.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/os/KeyValueDB.h

index 028243667dbb1c5665d662784383bfeec0bcccd0..e82151d53e7aa8a1a8d37dab7b51b3cde3d8d353 100644 (file)
@@ -160,6 +160,9 @@ public:
     string key() {
       return generic_iter->key();
     }
+    pair<string, string> raw_key() {
+      return generic_iter->raw_key();
+    }
     bufferlist value() {
       return generic_iter->value();
     }