From dc17107d818ecbbbda4affa9d90a3cb2755f04fa Mon Sep 17 00:00:00 2001 From: Jianjian Huo Date: Mon, 4 Apr 2016 14:50:19 -0700 Subject: [PATCH] os/bluestore/BlueStore: cleanup the wal entries using single delete 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 --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 33750ed055a2..08b0d7799e53 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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); -- 2.47.3