]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/RocksDBStore: make other rmkey match
authorSage Weil <sage@redhat.com>
Wed, 26 Aug 2015 18:54:00 +0000 (14:54 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:44 +0000 (13:39 -0400)
No need for Slice() here; it can take a string.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/RocksDBStore.cc

index 73789822b333d5a9f4765c153ef33a3870d5060c..cb3ac9143f46ea7a5b35622ecc21e56c4d1df018 100644 (file)
@@ -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()));
   }
 }