From d6b0e53c54fc964a7a83baf272692cadda8d5b5a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Aug 2015 14:52:56 -0400 Subject: [PATCH] os/RocksDBStore: fix rmkey() This took way too long to debug! 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 621b0bfea105a..73789822b333d 100644 --- a/src/os/RocksDBStore.cc +++ b/src/os/RocksDBStore.cc @@ -250,8 +250,7 @@ void RocksDBStore::RocksDBTransactionImpl::set( void RocksDBStore::RocksDBTransactionImpl::rmkey(const string &prefix, const string &k) { - string key = combine_strings(prefix, k); - bat->Delete(rocksdb::Slice(k)); + bat->Delete(combine_strings(prefix, k)); } void RocksDBStore::RocksDBTransactionImpl::rmkeys_by_prefix(const string &prefix) -- 2.39.5