]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: Configure compact-on-deletion for all CFs 57403/head
authorJoshua Baergen <jbaergen@digitalocean.com>
Tue, 20 Feb 2024 21:04:19 +0000 (14:04 -0700)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 9 Jul 2024 14:06:08 +0000 (21:06 +0700)
commitaf0fc59b2e1defd235b112d36dc4d1b4e97605e9
treef0ce56fb3210faddeec6353f5593f71fa01a47a1
parenta38a72552397a45aa76cc7011b744cfc84f7d98f
kv/RocksDBStore: Configure compact-on-deletion for all CFs

update_column_family_options() is called only for non-default CFs,
whereas load_rocksdb_options() sets options for all CFs, including
default. This isn't really a problem for new installs, where the default
CF isn't used for very much, but for upgrades where resharding has not
yet happened, the bulk of rocksdb data is still in the default CF and so
it's important that it also gets compact-on-deletion configured, if
desired.

Fixes: https://tracker.ceph.com/issues/64511
Signed-off-by: Joshua Baergen <jbaergen@digitalocean.com>
(cherry picked from commit e31c7249b3984d40fd0c2abfef1d2402112ed655)
src/kv/RocksDBStore.cc