From ec4b4923e8a8d679b5d67470d9dfbfcec97e0dac Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 24 Jul 2023 10:33:38 +0800 Subject: [PATCH] fix: multiple unsequenced modifications --- source/dnode/mgmt/mgmt_dnode/src/dmWorker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c index 7cc896cb84..98bb4e3f9c 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c @@ -42,7 +42,7 @@ static void *dmStatusThreadFp(void *param) { taosMemoryTrim(0); } - if ((upTimeCount = (++upTimeCount & 63)) == 0) { + if ((upTimeCount = ((upTimeCount + 1) & 63)) == 0) { upTime = taosGetOsUptime() - tsDndStartOsUptime; tsDndUpTime = TMAX(tsDndUpTime, upTime); } -- GitLab