fix: tsdb fs head/data/sma nRef
This commit is contained in:
parent
78d674e9c7
commit
d9ae5a755c
|
@ -458,9 +458,8 @@ static int32_t tsdbMergeFileSet(STsdb *pTsdb, SDFileSet *pSetOld, SDFileSet *pSe
|
||||||
taosMemoryFree(pHeadF);
|
taosMemoryFree(pHeadF);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nRef = pHeadF->nRef;
|
ASSERT(pHeadF->offset == pSetNew->pHeadF->offset);
|
||||||
*pHeadF = *pSetNew->pHeadF;
|
ASSERT(pHeadF->size == pSetNew->pHeadF->size);
|
||||||
pHeadF->nRef = nRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// data
|
// data
|
||||||
|
@ -481,9 +480,7 @@ static int32_t tsdbMergeFileSet(STsdb *pTsdb, SDFileSet *pSetOld, SDFileSet *pSe
|
||||||
taosMemoryFree(pDataF);
|
taosMemoryFree(pDataF);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nRef = pDataF->nRef;
|
pDataF->size = pSetNew->pDataF->size;
|
||||||
*pDataF = *pSetNew->pDataF;
|
|
||||||
pDataF->nRef = nRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// sma
|
// sma
|
||||||
|
@ -504,9 +501,7 @@ static int32_t tsdbMergeFileSet(STsdb *pTsdb, SDFileSet *pSetOld, SDFileSet *pSe
|
||||||
taosMemoryFree(pSmaF);
|
taosMemoryFree(pSmaF);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nRef = pSmaF->nRef;
|
pSmaF->size = pSetNew->pSmaF->size;
|
||||||
*pSmaF = *pSetNew->pSmaF;
|
|
||||||
pSmaF->nRef = nRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// stt
|
// stt
|
||||||
|
|
Loading…
Reference in New Issue