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 <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2026-03-16 13:06:13 +02:00
parent 3613d9a07d
commit 4efaf30945

View File

@@ -1053,7 +1053,7 @@ db::config::config(std::shared_ptr<db::extensions> 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