Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
“keyu813” committed Mar 10, 2022
1 parent 199194c commit 246c135
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/sdk/mini_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,13 @@ class MiniCluster {
if (tablet_num > MAX_TABLET_NUM) {
return false;
}
zk_path_ = "/mini_cluster_" + GenRand();
FLAGS_system_table_replica_num = 1;
srand(time(NULL));
FLAGS_db_root_path = "/tmp/mini_cluster" + GenRand();
zk_cluster_ = "127.0.0.1:" + std::to_string(zk_port_);
FLAGS_zk_cluster = zk_cluster_;
tablet_num_ = tablet_num;
for (int i = 0; i < tablet_num; i++) {
if (!StartTablet(&tb_servers_[i])) {
LOG(WARNING) << "fail to start tablet";
return false;
}
}
std::string ns_endpoint = "127.0.0.1:" + GenRand();
zk_path_ = "/mini_cluster_" + GenRand();
sleep(1);
LOG(INFO) << "zk cluster " << zk_cluster_ << " zk path " << zk_path_
<< " enable_distsql = " << FLAGS_enable_distsql;
Expand Down

0 comments on commit 246c135

Please sign in to comment.