fix ci walTest

This commit is contained in:
xiao-77 2024-10-16 13:38:45 +08:00
parent f206837d48
commit 48d9f2da65
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static void walAlignVersions(SWal* pWal) {
pWal->cfg.vgId, pWal->vers.snapshotVer, pWal->cfg.committed);
pWal->vers.snapshotVer = pWal->cfg.committed;
}
if (pWal->vers.snapshotVer < 0) {
if (pWal->vers.snapshotVer < 0 && pWal->vers.firstVer > 0) {
wWarn("vgId:%d, snapshotVer:%" PRId64 " in wal is an invalid value. align it with firstVer:%" PRId64 ".",
pWal->cfg.vgId, pWal->vers.snapshotVer, pWal->vers.firstVer);
pWal->vers.snapshotVer = pWal->vers.firstVer;