提交 542202d8 编写于 作者: C CatKang

delete sender if failed to addBinlogSender

上级 766c2553
......@@ -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");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册