]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueStore: cleanup the wal entries using single delete
authorJianjian Huo <jianjian.huo@ssi.samsung.com>
Mon, 4 Apr 2016 21:50:19 +0000 (14:50 -0700)
committerJianjian Huo <jianjian.huo@ssi.samsung.com>
Tue, 26 Apr 2016 00:03:52 +0000 (17:03 -0700)
By use of single delete, RocksDB should be able to remove deleted wal
entries with only one compaction in theory, when wal entries land on level0.
This should reduce bluestore wal entries incurred WAF.

Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
src/os/bluestore/BlueStore.cc

index 33750ed055a24922a537eeed3466a1eb6a1c8e43..08b0d7799e53331353251e3d8a386dba378f7e74 100644 (file)
@@ -3993,7 +3993,7 @@ void BlueStore::_kv_sync_thread()
        // cleanup the wal
        string key;
        get_wal_key(wt.seq, &key);
-       t->rmkey(PREFIX_WAL, key);
+       t->rm_single_key(PREFIX_WAL, key);
       }
       db->submit_transaction_sync(t);