]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: Add CompactOnDeletion support 50893/head
authorMark Nelson <mnelson@redhat.com>
Thu, 21 Jul 2022 21:31:07 +0000 (21:31 +0000)
committerCory Snyder <csnyder@1111systems.com>
Wed, 5 Apr 2023 19:04:12 +0000 (15:04 -0400)
commitd91dff3e3418b5dd977f026f8393328f47e7bab5
treef0e1dd80e1c7e0bdb6a805d6d75ed20afc4ed9c5
parent8b88d76591e7a09b20f71968c37362772044a299
kv/RocksDBStore: Add CompactOnDeletion support

This commit adds support to compact column families when a certain number
of tombstone entries have been observed within a certain sliding window
during iteration.  It only helps when itereating over entries already in
SST files and not when iterating over ranges in memtables.

Likely we will still need to provide a mechanism to flush memtables and
compact column families once a certain number of rmkey or rm_range_key
calls are made.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit fba5488728e89d9b0a1c1ab94b7024fcc81b3b15)
src/common/options/global.yaml.in
src/kv/RocksDBStore.cc