enh: add warn log for abnormal monitor value

This commit is contained in:
Cary Xu 2022-10-22 13:41:52 +08:00
parent 633a989892
commit 75ee92e989
1 changed files with 7 additions and 7 deletions

View File

@ -19,8 +19,8 @@
do { \ do { \
int##vType##_t newVal = atomic_sub_fetch_##vType(&(pVar), (oVal)); \ int##vType##_t newVal = atomic_sub_fetch_##vType(&(pVar), (oVal)); \
ASSERT(newVal >= 0); \ 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); \ vWarn("vgId:%d %s, abnormal val:%" PRIi64 ", old val:%" PRIi64, TD_VID(pVnode), tags, pVar, oVal); \
} \ } \
} while (0) } while (0)