fix(stream): fix the error in check scan interval

This commit is contained in:
Haojun Liao 2025-02-24 00:40:16 +08:00
parent 8bcc8399e6
commit 514a63ab37
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ int32_t tqScanWal(STQ* pTq) {
}
// the scan wal interval less than 200, not scan, actually.
if ((pMeta->scanInfo.lastScanTs > st) && (pMeta->scanInfo.lastScanTs - st < 200)) {
if ((pMeta->scanInfo.lastScanTs > 0) && (st - pMeta->scanInfo.lastScanTs < 200)) {
tqDebug("vgId:%d scan wal less than 200ms, do nothing", vgId);
atomic_store_32(&pMeta->scanInfo.scanSentinel, 0);
return code;