From 4efaf309458ad34fe9586e248f1273ce3c998be8 Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Mon, 16 Mar 2026 13:06:13 +0200 Subject: [PATCH] db/config: make auto_snapshot live-updateable We're already getting the latest value of `auto_snapshot` in database::drop_table and database::truncate_table_on_all_shards. Marking auto_snapshot as LiveUpdate to allow updating it via CQL or by reloading the configuration from scylla.yaml while the node is up. Signed-off-by: Benny Halevy --- db/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/config.cc b/db/config.cc index 17ad1c5b87..24a3f7feb2 100644 --- a/db/config.cc +++ b/db/config.cc @@ -1053,7 +1053,7 @@ db::config::config(std::shared_ptr exts) /** * @Group Advanced automatic backup setting */ - , auto_snapshot(this, "auto_snapshot", value_status::Used, true, + , auto_snapshot(this, "auto_snapshot", liveness::LiveUpdate, value_status::Used, true, "Enable or disable whether a snapshot is taken of the data before keyspace truncation or dropping of tables. To prevent data loss, using the default setting is strongly advised. If you set to false, you will lose data on truncation or drop.") /** * @Group Key caches and global row properties