Skip to content

Commit

Permalink
delete sender if failed to addBinlogSender
Browse files Browse the repository at this point in the history
  • Loading branch information
CatKang committed Sep 26, 2016
1 parent 766c255 commit 542202d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pika_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ Status PikaServer::AddBinlogSender(SlaveItem &slave, uint32_t filenum, uint64_t

return Status::OK();
} else {
delete sender;
LOG(WARNING) << "AddBinlogSender failed";
return Status::NotFound("AddBinlogSender bad sender");
}
Expand Down

0 comments on commit 542202d

Please sign in to comment.