Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix the bug in restore_test #515

Merged
merged 5 commits into from
Apr 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/server/config.min.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down
3 changes: 3 additions & 0 deletions src/test/function_test/test_restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down