提交 c0964e03 编写于 作者: C Cary Xu

other: add debug logs

上级 80336357
......@@ -1348,6 +1348,24 @@ static int tsdbCommitMemData(SCommitH *pCommith, SCommitIter *pIter, TSKEY keyLi
isLast = true;
}
SDataCols *pCols = pCommith->pDataCols;
SDataCol pCol_1 = pCols->cols[1];
SDataCol pCol_2 = pCols->cols[2];
SDataCol pCol_3 = pCols->cols[3];
SCellVal sVal = {0};
tdGetColDataOfRow(&sVal, &pCol_1, 0, pCols->bitmapMode);
ASSERT(sVal.valType == 0);
int32_t val1 = *(int32_t *)sVal.val;
ASSERT(val1 == 7);
tdGetColDataOfRow(&sVal, &pCol_2, 0, pCols->bitmapMode);
ASSERT(sVal.valType == 0);
int64_t val2 = *(int64_t *)sVal.val;
ASSERT(val2 == 77777);
tdGetColDataOfRow(&sVal, &pCol_3, 0, pCols->bitmapMode);
ASSERT(sVal.valType == 0);
int16_t val3 = *(int16_t *)sVal.val;
ASSERT(val3 == 777);
if (tsdbWriteBlock(pCommith, pDFile, pCommith->pDataCols, &block, isLast, true) < 0) return -1;
if (tsdbCommitAddBlock(pCommith, &block, NULL, 0) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册