Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 9, 2024
1 parent 431dcb2 commit 64d54ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions be/src/cloud/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ DEFINE_mBool(enable_new_tablet_do_compaction, "false");

DEFINE_Bool(enable_cloud_txn_lazy_commit, "false");

void set_cloud_unique_id(std::string instance_id) {
if (cloud_unique_id.empty() && !instance_id.empty()) {
static_cast<void>(set_config("cloud_unique_id", "1:" + instance_id + ":compute", true));
}
}

} // namespace doris::config
6 changes: 1 addition & 5 deletions be/src/cloud/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ static inline bool is_cloud_mode() {
return deploy_mode == "disaggregated" || !cloud_unique_id.empty();
}

static inline void set_cloud_unique_id(std::string instance_id) {
if (cloud_unique_id.empty() && !instance_id.empty()) {
static_cast<void>(set_config("cloud_unique_id", "1:" + instance_id + ":compute", true));
}
}
void set_cloud_unique_id(std::string instance_id);

// Set the endpoint of meta service.
//
Expand Down

0 comments on commit 64d54ff

Please sign in to comment.