提交 acf7263e 编写于 作者: N nroskill 提交者: wangzelin.wzl

[CP] [CP] fix config dump2file failed

上级 062a57e1
......@@ -232,7 +232,7 @@ int ObConfigManager::dump2file(const char* path) const
} else if ((fd = ::open(tmp_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP)) < 0) {
ret = OB_IO_ERROR;
LOG_WARN("fail to create config file", K(tmp_path), KERRMSG, K(ret));
} else if (pos != (size = write(fd, buf, pos))) {
} else if (pos != (size = unintr_write(fd, buf, pos))) {
ret = OB_IO_ERROR;
LOG_WARN("Write server config fail!", K(errno), KERRMSG, K(pos), K(size), K(ret));
if (0 != close(fd)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册