os/KeyValueDB: Add raw_key() interface for IteratorImpl

raw_key() is useful to split out the prefix.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
This commit is contained in:
Xiaoxi Chen 2015-04-12 11:28:13 +08:00 committed by Sage Weil
parent b595aac4e1
commit c86410239b

View 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();
}