]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: Add CompactOnDeletion support
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:16:38 +0000 (15:16 -0400)
commit317eb8f69834fa08dbb17b19656db2359dbdcbd0
treec434a5953510dc92e3fd10df140636d4307d0c5f
parent5455b010f5377d9194445e822768e25f66377c00
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)

Conflicts:
src/common/options/global.yaml.in

Cherry-pick notes:
- Conflicts due to change in configuration options format after Pacific
src/common/legacy_config_opts.h
src/common/options.cc
src/kv/RocksDBStore.cc