fix: update wal reader's curFileFirstVer
This commit is contained in:
parent
df24670881
commit
b6ddf5bfd7
|
@ -168,6 +168,9 @@ static int32_t walReadChangeFile(SWalReader *pReader, int64_t fileFirstVer) {
|
|||
}
|
||||
|
||||
pReader->pIdxFile = pIdxFile;
|
||||
|
||||
pReader->curFileFirstVer = fileFirstVer;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -415,7 +418,8 @@ int32_t walFetchBody(SWalReader *pRead, SWalCkHead **ppHead) {
|
|||
}
|
||||
|
||||
if (walValidBodyCksum(*ppHead) != 0) {
|
||||
wError("vgId:%d, wal fetch body error, index:%" PRId64 ", since body checksum not passed", pRead->pWal->cfg.vgId, ver);
|
||||
wError("vgId:%d, wal fetch body error, index:%" PRId64 ", since body checksum not passed", pRead->pWal->cfg.vgId,
|
||||
ver);
|
||||
pRead->curInvalid = 1;
|
||||
terrno = TSDB_CODE_WAL_FILE_CORRUPTED;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue