test: fix sim test ttl error

This commit is contained in:
afwerar 2022-06-21 21:52:38 +08:00
parent 04771a6d82
commit 72ab0e1ae9
1 changed files with 3 additions and 2 deletions

View File

@ -124,11 +124,12 @@ static void *mndThreadFp(void *param) {
setThreadName("mnode-timer");
while (1) {
if (lastTime % 864000 == 0) {
lastTime++;
if (lastTime % (864000) == 0) { // sleep 1 day for ttl
mndPushTtlTime(pMnode);
}
lastTime++;
taosMsleep(100);
if (mndGetStop(pMnode)) break;