Merge pull request #29221 from taosdata/fix/TD-33282

fix(tsdb/cache del): remove commit w.r.t del
This commit is contained in:
Shengliang Guan 2024-12-20 11:13:56 +08:00 committed by GitHub
commit da46ea3fcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 12 deletions

View File

@ -2635,23 +2635,15 @@ _exit:
}
int32_t tsdbCacheDel(STsdb *pTsdb, tb_uid_t suid, tb_uid_t uid, TSKEY sKey, TSKEY eKey) {
int32_t code = 0, lino = 0;
// fetch schema
int32_t code = 0, lino = 0;
STSchema *pTSchema = NULL;
int sver = -1;
int numKeys = 0;
SArray *remainCols = NULL;
TAOS_CHECK_RETURN(metaGetTbTSchemaEx(pTsdb->pVnode->pMeta, suid, uid, sver, &pTSchema));
// build keys & multi get from rocks
int numCols = pTSchema->numOfCols;
int numKeys = 0;
SArray *remainCols = NULL;
code = tsdbCacheCommit(pTsdb);
if (code != TSDB_CODE_SUCCESS) {
tsdbTrace("vgId:%d, %s commit failed at line %d since %s", TD_VID(pTsdb->pVnode), __func__, __LINE__,
tstrerror(code));
}
int numCols = pTSchema->numOfCols;
(void)taosThreadMutexLock(&pTsdb->lruMutex);