opti:wal logic
This commit is contained in:
parent
7b22d37f12
commit
767563752a
|
@ -224,6 +224,7 @@ int32_t tqFetchLog(STQ* pTq, STqHandle* pHandle, int64_t* fetchOffset, uint64_t
|
|||
goto END;
|
||||
} else {
|
||||
offset++;
|
||||
code = -1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -234,6 +235,7 @@ int32_t tqFetchLog(STQ* pTq, STqHandle* pHandle, int64_t* fetchOffset, uint64_t
|
|||
}
|
||||
offset++;
|
||||
}
|
||||
code = -1;
|
||||
}
|
||||
|
||||
END:
|
||||
|
|
|
@ -216,7 +216,6 @@ static int32_t extractDataAndRspForDbStbSubscribe(STQ* pTq, STqHandle* pHandle,
|
|||
walReaderVerifyOffset(pHandle->pWalReader, offset);
|
||||
int64_t fetchVer = offset->version;
|
||||
|
||||
walSetReaderCapacity(pHandle->pWalReader, 2048);
|
||||
int totalRows = 0;
|
||||
while (1) {
|
||||
int32_t savedEpoch = atomic_load_32(&pHandle->epoch);
|
||||
|
|
Loading…
Reference in New Issue