enh: add warn log for abnormal monitor value

This commit is contained in:
Cary Xu 2022-10-22 13:42:37 +08:00
parent 75ee92e989
commit c02989f44a
1 changed files with 1 additions and 1 deletions

View File

@ -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)