From 0d463ffdec941bbcde7579071af060183a9cb168 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Aug 2015 14:54:00 -0400 Subject: [PATCH] os/RocksDBStore: make other rmkey match No need for Slice() here; it can take a string. Signed-off-by: Sage Weil --- src/os/RocksDBStore.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/RocksDBStore.cc b/src/os/RocksDBStore.cc index 73789822b333d..cb3ac9143f46e 100644 --- a/src/os/RocksDBStore.cc +++ b/src/os/RocksDBStore.cc @@ -259,8 +259,7 @@ void RocksDBStore::RocksDBTransactionImpl::rmkeys_by_prefix(const string &prefix for (it->seek_to_first(); it->valid(); it->next()) { - string key = combine_strings(prefix, it->key()); - bat->Delete(key); + bat->Delete(combine_strings(prefix, it->key())); } } -- 2.39.5