This commit is contained in:
Hongze Cheng 2021-12-09 18:21:30 +08:00
parent dad17aa71e
commit d9662eb67f
1 changed files with 3 additions and 2 deletions

View File

@ -342,8 +342,9 @@ static int metaCtbIdxCb(DB *pIdx, const DBT *pKey, const DBT *pValue, DBT *pSKey
pDbt[0].size = sizeof(pTbCfg->ctbCfg.suid); pDbt[0].size = sizeof(pTbCfg->ctbCfg.suid);
// Second key is the first tag // Second key is the first tag
pDbt[1].data = NULL; void *pTagVal = tdGetKVRowValOfCol(pTbCfg->ctbCfg.pTag, 0);
pDbt[1].size = 0; pDbt[1].data = varDataVal(pTagVal);
pDbt[1].size = varDataLen(pTagVal);
// Set index key // Set index key
memset(pSKey, 0, sizeof(*pSKey)); memset(pSKey, 0, sizeof(*pSKey));