fix:[TS-4716]wait too long if change system time
This commit is contained in:
parent
b0cdf887b4
commit
3c0dbacf37
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue