Skip to content

Commit

Permalink
change set leader
Browse files Browse the repository at this point in the history
  • Loading branch information
GehaFearless committed Nov 16, 2023
1 parent 2e6e527 commit 933cd0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/replication_ddl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ replication_ddl_client::replication_ddl_client(const std::vector<dsn::host_port>
LOG_WARNING("duplicate adress {}", m);
}
}
set_meta_servers_leader();
}

replication_ddl_client::~replication_ddl_client() { _tracker.cancel_outstanding_tasks(); }
Expand Down Expand Up @@ -1103,7 +1104,6 @@ dsn::error_code replication_ddl_client::add_backup_policy(const std::string &pol
error_with<start_backup_app_response> replication_ddl_client::backup_app(
int32_t app_id, const std::string &backup_provider_type, const std::string &backup_path)
{
set_meta_servers_leader();
auto req = std::make_unique<start_backup_app_request>();
req->app_id = app_id;
req->backup_provider_type = backup_provider_type;
Expand Down
1 change: 0 additions & 1 deletion src/test/function_test/utils/test_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ void test_util::SetUp()

ddl_client_ = std::make_shared<replication_ddl_client>(meta_list_);
ASSERT_TRUE(ddl_client_ != nullptr);
ddl_client_->set_meta_servers_leader();
ddl_client_->set_max_wait_app_ready_secs(120);

dsn::error_code ret =
Expand Down

0 comments on commit 933cd0a

Please sign in to comment.