From: Jianjian Huo Date: Mon, 4 Apr 2016 21:50:19 +0000 (-0700) Subject: os/bluestore/BlueStore: cleanup the wal entries using single delete X-Git-Tag: v11.0.0~826^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc17107d818ecbbbda4affa9d90a3cb2755f04fa;p=ceph.git 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 --- 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);