fix firstVer incorrect while romove wal dir

This commit is contained in:
xiao-77 2024-10-31 11:24:31 +08:00
parent 2749fda758
commit 40cf21b15c
2 changed files with 1 additions and 3 deletions

View File

@ -664,7 +664,7 @@ static FORCE_INLINE int32_t walWriteImpl(SWal *pWal, int64_t index, tmsg_t msgTy
// set status // set status
if (pWal->vers.firstVer == -1) { if (pWal->vers.firstVer == -1) {
pWal->vers.firstVer = 0; pWal->vers.firstVer = index;
} }
pWal->vers.lastVer = index; pWal->vers.lastVer = index;
pWal->totSize += sizeof(SWalCkHead) + cyptedBodyLen; pWal->totSize += sizeof(SWalCkHead) + cyptedBodyLen;

View File

@ -17,8 +17,6 @@ sys.path.append("./7-tmq")
from tmqCommon import * from tmqCommon import *
class TDTestCase: class TDTestCase:
updatecfgDict = {'sDebugFlag':143, 'wDebugFlag':143}
def __init__(self): def __init__(self):
self.vgroups = 1 self.vgroups = 1
self.ctbNum = 10 self.ctbNum = 10