fix backup use tmp file performance issue

This commit is contained in:
oceanoverflow
2023-02-21 09:45:00 +00:00
committed by ob-robot
parent 00d1041983
commit 279bed6adf

View File

@ -65,8 +65,6 @@ int ObBackupTmpFile::write(const char *buf, const int64_t size)
LOG_WARN("failed to get io info", K(ret), K(buf), K(size));
} else if (OB_FAIL(ObTmpFileManager::get_instance().write(io_info, timeout_ms))) {
LOG_WARN("failed to write tmp file", K(ret), K(io_info), K(timeout_ms));
} else if (OB_FAIL(ObTmpFileManager::get_instance().sync(file_fd_, timeout_ms))) {
LOG_WARN("failed to sync tmp file", K(ret), K(file_fd_));
} else {
file_size_ += size;
LOG_INFO("backup tmp file write", K(buf), K(size));