fix: disk full recovery issue

This commit is contained in:
dapan1121 2022-12-12 16:19:04 +08:00
parent febb306ae5
commit 55fd615de8
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;
if (count == 10) {
osUpdate();
count = 0;
} else {
count++;
}
taosMsleep(100);
}
}