From c02989f44a26453bb519504fe00908ceac5d497e Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Sat, 22 Oct 2022 13:42:37 +0800 Subject: [PATCH] enh: add warn log for abnormal monitor value --- source/dnode/vnode/src/vnd/vnodeQuery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/vnd/vnodeQuery.c b/source/dnode/vnode/src/vnd/vnodeQuery.c index 7aff837906..01532b47d7 100644 --- a/source/dnode/vnode/src/vnd/vnodeQuery.c +++ b/source/dnode/vnode/src/vnd/vnodeQuery.c @@ -19,7 +19,7 @@ do { \ int##vType##_t newVal = atomic_sub_fetch_##vType(&(pVar), (oVal)); \ ASSERT(newVal >= 0); \ - if (newVal >= 0) { \ + if (newVal < 0) { \ vWarn("vgId:%d %s, abnormal val:%" PRIi64 ", old val:%" PRIi64, TD_VID(pVnode), tags, pVar, oVal); \ } \ } while (0) -- GitLab