Skip to content

Commit

Permalink
fix add slave border
Browse files Browse the repository at this point in the history
  • Loading branch information
CatKang committed Mar 1, 2017
1 parent fd3d236 commit 5429dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5429dc6

Please sign in to comment.