提交 9a61a567 编写于 作者: M Minghao Li

refactor(sync): set gRaftDetailLog false

上级 7ae6d8f7
......@@ -179,7 +179,7 @@ int32_t syncNodeOnAppendEntriesReplySnapshotCb(SSyncNode* ths, SyncAppendEntries
snapshotSenderStart(pSender);
char* s = snapshotSender2Str(pSender);
sInfo("snapshot send start sender first time, sender:%s", s);
sInfo("sync event snapshot send start sender first time, sender:%s", s);
taosMemoryFree(s);
}
......
......@@ -109,8 +109,8 @@ void snapshotSenderStart(SSyncSnapshotSender *pSender) {
char host[128];
uint16_t port;
syncUtilU642Addr(pSender->pSyncNode->replicasId[pSender->replicaIndex].addr, host, sizeof(host), &port);
sTrace("sync event snapshot send to %s:%d begin seq:%d ack:%d send msg:%s", host, port, pSender->seq, pSender->ack,
msgStr);
sTrace("sync event snapshot send to %s:%d begin seq:%d ack:%d lastApplyIndex:%ld lastApplyTerm:%lu send msg:%s", host,
port, pSender->seq, pSender->ack, pSender->snapshot.lastApplyIndex, pSender->snapshot.lastApplyTerm, msgStr);
taosMemoryFree(msgStr);
syncSnapshotSendDestroy(pMsg);
......@@ -234,8 +234,9 @@ int32_t snapshotSend(SSyncSnapshotSender *pSender) {
host, port, pSender->seq, pSender->ack, pSender->snapshot.lastApplyIndex, pSender->snapshot.lastApplyTerm,
msgStr);
} else {
sTrace("sync event snapshot send to %s:%d sending seq:%d ack:%d send msg:%s", host, port, pSender->seq,
pSender->ack, msgStr);
sTrace("sync event snapshot send to %s:%d sending seq:%d ack:%d lastApplyIndex:%ld lastApplyTerm:%lu send msg:%s",
host, port, pSender->seq, pSender->ack, pSender->snapshot.lastApplyIndex, pSender->snapshot.lastApplyTerm,
msgStr);
}
taosMemoryFree(msgStr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册