From 0825ce995e46f7980a47dffb7d5be10d2772cca0 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Sun, 11 Oct 2020 03:52:37 +0000 Subject: [PATCH] add debug info for sync --- src/sync/src/syncMain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sync/src/syncMain.c b/src/sync/src/syncMain.c index 0daf0b9620..f74d5a3816 100644 --- a/src/sync/src/syncMain.c +++ b/src/sync/src/syncMain.c @@ -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 -- GitLab