From 7f6d0a22a82decefdcee7a767b59c77b1a798dbb Mon Sep 17 00:00:00 2001 From: Nathan Lo Date: Tue, 5 Nov 2024 18:08:58 -0500 Subject: [PATCH] Make snapshot-dir read-only --- src/config/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.cc b/src/config/config.cc index f1486f88df4..86073a55f78 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -188,7 +188,7 @@ Config::Config() { new IntField(&force_compact_file_min_deleted_percentage, 10, 1, 100)}, {"db-name", true, new StringField(&db_name, "change.me.db")}, {"dir", true, new StringField(&dir, kDefaultDir)}, - {"snapshot-dir", false, new StringField(&snapshot_dir, "")}, + {"snapshot-dir", true, new StringField(&snapshot_dir, "")}, {"backup-dir", false, new StringField(&backup_dir, kDefaultBackupDir)}, {"log-dir", true, new StringField(&log_dir, "")}, {"log-level", false, new EnumField(&log_level, log_levels, google::INFO)},