other: code optimization
This commit is contained in:
parent
6c7dce7363
commit
715bb6d2e9
|
@ -497,7 +497,7 @@ static int32_t tsdbCommitToFile(SCommitH *pCommith, SDFileSet *pSet, int fid) {
|
||||||
|
|
||||||
if (pIter && pIter->pTable &&
|
if (pIter && pIter->pTable &&
|
||||||
(!pIdx || ((pIter->pTable->suid < pIdx->suid) ||
|
(!pIdx || ((pIter->pTable->suid < pIdx->suid) ||
|
||||||
(pIter->pTable->suid == pIdx->suid && pIter->pTable->uid <= pIdx->uid)))) {
|
((pIter->pTable->suid == pIdx->suid) && (pIter->pTable->uid <= pIdx->uid))))) {
|
||||||
if (tsdbCommitToTable(pCommith, mIter) < 0) {
|
if (tsdbCommitToTable(pCommith, mIter) < 0) {
|
||||||
tsdbCloseCommitFile(pCommith, true);
|
tsdbCloseCommitFile(pCommith, true);
|
||||||
// revert the file change
|
// revert the file change
|
||||||
|
|
Loading…
Reference in New Issue