提交 2aaf3a37 编写于 作者: J jonyguo

fix: mindrecord seekg failed when shift raw page

上级 95ef02af
......@@ -90,7 +90,7 @@ MSRStatus ShardWriter::OpenDataFiles(bool append) {
fs->close();
// open the mindrecord file to write
fs->open(common::SafeCStr(file), std::ios::out | std::ios::binary);
fs->open(common::SafeCStr(file), std::ios::out | std::ios::in | std::ios::binary | std::ios::trunc);
if (!fs->good()) {
MS_LOG(ERROR) << "MindRecord file could not opened.";
return FAILED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册