fix ci crash.
This commit is contained in:
parent
0178d734cb
commit
689c0f5254
|
@ -108,8 +108,12 @@ int32_t walInitWriteFileForSkip(SWal *pWal) {
|
||||||
// switch file
|
// switch file
|
||||||
pWal->pIdxFile = pIdxTFile;
|
pWal->pIdxFile = pIdxTFile;
|
||||||
pWal->pLogFile = pLogTFile;
|
pWal->pLogFile = pLogTFile;
|
||||||
|
SWalFileInfo fileInfo;
|
||||||
|
(void)memset(&fileInfo, -1, sizeof(SWalFileInfo));
|
||||||
|
if (!taosArrayPush(pWal->fileInfoSet, &fileInfo)) {
|
||||||
|
TAOS_RETURN(TSDB_CODE_FAILED);
|
||||||
|
}
|
||||||
pWal->writeCur = 0;
|
pWal->writeCur = 0;
|
||||||
|
|
||||||
TAOS_RETURN(TSDB_CODE_SUCCESS);
|
TAOS_RETURN(TSDB_CODE_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue