mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
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:
parent
1e3c2fa21a
commit
48ceaaf0cc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user