提交 5b57c9ac 编写于 作者: H Hongze Cheng

add a simple assert

上级 cc9626f4
......@@ -1311,6 +1311,7 @@ int vnodeWriteBlockToFile(SMeterObj *pObj, SCompBlock *pCompBlock, SData *data[]
pCompBlock->keyFirst = *((TSKEY *)(data[0]->data)); // hack way to get the key
pCompBlock->keyLast = *((TSKEY *)(data[0]->data + (points - 1) * pObj->schema[0].bytes));
pCompBlock->sversion = pObj->sversion;
assert(pCompBlock->keyFirst <= pCompBlock->keyLast);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册