fix/wal-load-file-set
This commit is contained in:
parent
8663779def
commit
e4373116b2
|
@ -253,7 +253,6 @@ static int32_t walRebuildFileInfoSet(SArray* metaLogList, SArray* actualLogList)
|
||||||
int j = 0;
|
int j = 0;
|
||||||
|
|
||||||
// both of the lists in asc order
|
// both of the lists in asc order
|
||||||
/*
|
|
||||||
for (int i = 0; i < actualFileNum; i++) {
|
for (int i = 0; i < actualFileNum; i++) {
|
||||||
SWalFileInfo* pLogInfo = taosArrayGet(actualLogList, i);
|
SWalFileInfo* pLogInfo = taosArrayGet(actualLogList, i);
|
||||||
while (j < metaFileNum) {
|
while (j < metaFileNum) {
|
||||||
|
@ -269,7 +268,6 @@ static int32_t walRebuildFileInfoSet(SArray* metaLogList, SArray* actualLogList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
taosArrayClear(metaLogList);
|
taosArrayClear(metaLogList);
|
||||||
|
|
||||||
|
@ -553,6 +551,7 @@ int32_t walCheckAndRepairMeta(SWal* pWal) {
|
||||||
// repair ts of files
|
// repair ts of files
|
||||||
TAOS_CHECK_RETURN(walRepairLogFileTs(pWal, &updateMeta));
|
TAOS_CHECK_RETURN(walRepairLogFileTs(pWal, &updateMeta));
|
||||||
|
|
||||||
|
printFileSet(pWal->fileInfoSet);
|
||||||
// update meta file
|
// update meta file
|
||||||
if (updateMeta) {
|
if (updateMeta) {
|
||||||
TAOS_CHECK_RETURN(walSaveMeta(pWal));
|
TAOS_CHECK_RETURN(walSaveMeta(pWal));
|
||||||
|
|
Loading…
Reference in New Issue