enh: turn error on WAL data size to recover exceeding a limit as warn
This commit is contained in:
parent
4237cafb21
commit
3c1c95c5e6
|
@ -81,11 +81,9 @@ static FORCE_INLINE int64_t walScanLogGetLastVer(SWal* pWal, int32_t fileIdx) {
|
|||
int64_t recoverSize = end - offset;
|
||||
|
||||
if (2 * tsWalFsyncDataSizeLimit < recoverSize) {
|
||||
wError("vgId:%d, possibly corrupted WAL range exceeds size limit (i.e. %" PRId64 " bytes). offset:%" PRId64
|
||||
wWarn("vgId:%d, possibly corrupted WAL range exceeds size limit (i.e. %" PRId64 " bytes). offset:%" PRId64
|
||||
", end:%" PRId64 ", file:%s",
|
||||
pWal->cfg.vgId, 2 * tsWalFsyncDataSizeLimit, offset, end, fnameStr);
|
||||
terrno = TSDB_CODE_WAL_SIZE_LIMIT;
|
||||
goto _err;
|
||||
}
|
||||
|
||||
// search for the valid last WAL entry, e.g. block by block
|
||||
|
|
Loading…
Reference in New Issue