提交 98cd494f 编写于 作者: zhangbiyun's avatar zhangbiyun

fix:Failed to start TDengine server service.(vnode tsdb data file has wrong...

fix:Failed to start TDengine server service.(vnode tsdb data file has wrong size , report to upper layer to fix it) #13529
上级 03802404
......@@ -257,7 +257,13 @@ static FORCE_INLINE int tsdbAppendDFile(SDFile* pDFile, void* buf, int64_t nbyte
return -1;
}
ASSERT(pDFile->info.size == toffset);
//bug fix. To avoid data corruption, close the data file in advance.
//ASSERT(pDFile->info.size == toffset);
if (pDFile->info.size != toffset) {
tsdbCloseDFile(pDFile);
terrno = TAOS_SYSTEM_ERROR(errno);
return -1;
}
if (offset) {
*offset = toffset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册