Merge branch 'feat/tsdb_refact' of https://github.com/taosdata/TDengine into feat/tsdb_snapshot
This commit is contained in:
commit
d1cf93e435
|
@ -139,7 +139,11 @@ int32_t tsdbCacheInsertLastrow(SLRUCache *pCache, STsdb *pTsdb, tb_uid_t uid, ST
|
|||
} else {
|
||||
taosLRUCacheRelease(pCache, h, true);
|
||||
// tsdbCacheDeleteLastrow(pCache, uid, TSKEY_MAX);
|
||||
|
||||
if (dup) {
|
||||
cacheRow = tdRowDup(row);
|
||||
} else {
|
||||
cacheRow = row;
|
||||
}
|
||||
_taos_lru_deleter_t deleter = deleteTableCacheLastrow;
|
||||
LRUStatus status = taosLRUCacheInsert(pCache, key, keyLen, cacheRow, TD_ROW_LEN(cacheRow), deleter, NULL,
|
||||
TAOS_LRU_PRIORITY_LOW);
|
||||
|
|
|
@ -367,7 +367,7 @@ int32_t tsdbReadDelIdx(SDelFReader *pReader, SArray *aDelIdx, uint8_t **ppBuf) {
|
|||
int64_t size = pReader->fDel.size - offset;
|
||||
uint32_t delimiter;
|
||||
uint8_t *pBuf = NULL;
|
||||
SDelIdx *pDelIdx = &(SDelIdx){};
|
||||
SDelIdx *pDelIdx = &(SDelIdx){0};
|
||||
|
||||
if (!ppBuf) ppBuf = &pBuf;
|
||||
|
||||
|
|
Loading…
Reference in New Issue