diff --git a/src/server/config.min.ini b/src/server/config.min.ini index f46bd60167..b8381bf233 100644 --- a/src/server/config.min.ini +++ b/src/server/config.min.ini @@ -101,6 +101,7 @@ cold_backup_root = onebox duplication_disabled = true cluster_name = onebox + cold_backup_checkpoint_reserve_minutes = 10 [meta_server.apps.@APP_NAME@] app_name = @APP_NAME@ diff --git a/src/test/function_test/test_restore.cpp b/src/test/function_test/test_restore.cpp index b8b98eaefc..eb752805be 100644 --- a/src/test/function_test/test_restore.cpp +++ b/src/test/function_test/test_restore.cpp @@ -30,6 +30,9 @@ class restore_test : public testing::Test system("cp src/server/config.min.ini config-server-test-restore.ini"); system("sed -i \"/^\\s*cold_backup_disabled/c cold_backup_disabled = false\" " "config-server-test-restore.ini"); + system("sed -i \"/^\\s*cold_backup_checkpoint_reserve_minutes/c " + "cold_backup_checkpoint_reserve_minutes = 0\" " + "config-server-test-restore.ini"); std::string cmd = "sed -i \"/^\\s*cold_backup_root/c cold_backup_root = " + cluster_name; cmd = cmd + std::string("\" config-server-test-restore.ini"); system(cmd.c_str());