kv/RocksDBStore: do not Delete before Put

A put implicitly overwrites the previous value.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-10-20 08:49:57 -04:00
parent 1e3c2fa21a
commit 48ceaaf0cc

View File

@ -241,7 +241,6 @@ void RocksDBStore::RocksDBTransactionImpl::set(
const bufferlist &to_set_bl)
{
string key = combine_strings(prefix, k);
bat->Delete(rocksdb::Slice(key));
// bufferlist::c_str() is non-constant, so we can't call c_str()
if (to_set_bl.is_contiguous() && to_set_bl.length() > 0) {