fix: another fail CI case
This commit is contained in:
parent
eafad954a1
commit
a71be005ae
|
@ -899,6 +899,7 @@ int32_t tsdbFSCommit2(STsdb *pTsdb, STsdbFS *pFSNew) {
|
||||||
pSetOld->aSstF[0]->nRef = 1;
|
pSetOld->aSstF[0]->nRef = 1;
|
||||||
} else {
|
} else {
|
||||||
for (int32_t iSst = 0; iSst < pSetOld->nSstF; iSst++) {
|
for (int32_t iSst = 0; iSst < pSetOld->nSstF; iSst++) {
|
||||||
|
if (pSetOld->aSstF[iSst]->commitID != pSetNew->aSstF[iSst]->commitID) {
|
||||||
SSstFile *pSstFile = pSetOld->aSstF[iSst];
|
SSstFile *pSstFile = pSetOld->aSstF[iSst];
|
||||||
nRef = atomic_sub_fetch_32(&pSstFile->nRef, 1);
|
nRef = atomic_sub_fetch_32(&pSstFile->nRef, 1);
|
||||||
if (nRef == 0) {
|
if (nRef == 0) {
|
||||||
|
@ -914,6 +915,10 @@ int32_t tsdbFSCommit2(STsdb *pTsdb, STsdbFS *pFSNew) {
|
||||||
}
|
}
|
||||||
*pSetOld->aSstF[iSst] = *pSetNew->aSstF[iSst];
|
*pSetOld->aSstF[iSst] = *pSetNew->aSstF[iSst];
|
||||||
pSetOld->aSstF[iSst]->nRef = 1;
|
pSetOld->aSstF[iSst]->nRef = 1;
|
||||||
|
} else {
|
||||||
|
ASSERT(pSetOld->aSstF[iSst]->size == pSetOld->aSstF[iSst]->size);
|
||||||
|
ASSERT(pSetOld->aSstF[iSst]->offset == pSetOld->aSstF[iSst]->offset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue