提交 5429dc6c 编写于 作者: C CatKang

fix add slave border

上级 fd3d236e
......@@ -123,7 +123,7 @@ void TrysyncCmd::Do() {
LOG(INFO) << "Trysync, Slave ip: " << slave_ip_ << "Slave port:" << slave_port_
<< " filenum: " << filenum_ << " pro_offset: " << pro_offset_;
int64_t sid = g_pika_server->TryAddSlave(slave_ip_, slave_port_);
if (sid > 0) {
if (sid >= 0) {
Status status = g_pika_server->AddBinlogSender(slave_ip_, slave_port_,
filenum_, pro_offset_);
if (status.ok()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册