Merge pull request #18904 from taosdata/fix/TD-21167

fix: disk full recovery issue
This commit is contained in:
Shengliang Guan 2022-12-12 20:23:11 +08:00 committed by GitHub
commit 88bf65ffa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -149,10 +149,13 @@ int32_t dmRunDnode(SDnode *pDnode) {
return 0;
}
if (count == 0) osUpdate();
count %= 10;
count++;
if (count == 10) {
osUpdate();
count = 0;
} else {
count++;
}
taosMsleep(100);
}
}