Skip to content

Commit

Permalink
disable timeout option for tgctl restore
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Dec 5, 2023
1 parent 8ba1d0c commit d978bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tateyama/tgctl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ int tgctl_main(const std::vector<std::string>& args) {
return -1;
}
if (args.at(1) == "restore") {
if (FLAGS_timeout != -1) {
std::cerr << "timeout option cannot be specified to restore subcommand" << std::endl;
}
FLAGS_timeout = 0; // no timeout for 'tgctl restore xxx'
tateyama::process::tgctl_start(args.at(0), true, tateyama::framework::boot_mode::maintenance_server);

Expand Down

0 comments on commit d978bcc

Please sign in to comment.