add debug info for sync

This commit is contained in:
Jeff Tao 2020-10-11 03:52:37 +00:00
parent 8ebbfedba7
commit 0825ce995e
1 changed files with 2 additions and 0 deletions

View File

@ -313,6 +313,8 @@ int32_t syncForwardToPeer(void *param, void *data, void *mhandle, int qtype) {
// always update version
nodeVersion = pWalHead->version;
sDebug("replica:%d nodeRole:%d qtype:%d", pNode->replica, nodeRole, qtype);
if (pNode->replica == 1 || nodeRole != TAOS_SYNC_ROLE_MASTER) return 0;
// only pkt from RPC or CQ can be forwarded