提交 af9aa9d7 编写于 作者: B Benguang Zhao

enh: assert on alignment of idx entries in walWriteIndex

上级 f0427c93
......@@ -421,6 +421,8 @@ static int32_t walWriteIndex(SWal *pWal, int64_t ver, int64_t offset) {
terrno = TAOS_SYSTEM_ERROR(errno);
return -1;
}
ASSERT(taosLSeekFile(pWal->pIdxFile, 0, SEEK_END) == idxOffset + sizeof(SWalIdxEntry) && "Offset of idx entries misaligned");
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册