fix:[TS-4716]wait too long if change system time

This commit is contained in:
wangmm0220 2024-05-17 16:37:40 +08:00
parent b0cdf887b4
commit 3c0dbacf37
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ bool tqNextBlockInWal(STqReader* pReader, const char* id, int sourceExcluded) {
pReader->msg.msgStr = NULL; pReader->msg.msgStr = NULL;
int64_t elapsed = taosGetTimestampMs() - st; int64_t elapsed = taosGetTimestampMs() - st;
if(elapsed > 1000 && elapsed < 0){ if(elapsed > 1000 || elapsed < 0){
return false; return false;
} }