From c86410239b54f430cf65166c877b7a49adebb548 Mon Sep 17 00:00:00 2001 From: Xiaoxi Chen Date: Sun, 12 Apr 2015 11:28:13 +0800 Subject: [PATCH] os/KeyValueDB: Add raw_key() interface for IteratorImpl raw_key() is useful to split out the prefix. Signed-off-by: Xiaoxi Chen --- src/os/KeyValueDB.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/KeyValueDB.h b/src/os/KeyValueDB.h index 028243667db..e82151d53e7 100644 --- a/src/os/KeyValueDB.h +++ b/src/os/KeyValueDB.h @@ -160,6 +160,9 @@ public: string key() { return generic_iter->key(); } + pair raw_key() { + return generic_iter->raw_key(); + } bufferlist value() { return generic_iter->value(); }