This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 7a7245a5244 [bug](typo) Close local fd using correct predicate
condition (#35392)
7a7245a5244 is described below
commit 7a7245a5244a81fbc685de9ec3769695b4f9de8f
Author: AlexYue <[email protected]>
AuthorDate: Sun May 26 09:16:32 2024 +0800
[bug](typo) Close local fd using correct predicate condition (#35392)
---
be/src/io/fs/local_file_writer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/io/fs/local_file_writer.cpp
b/be/src/io/fs/local_file_writer.cpp
index 1c6a2983681..02ff0887cd2 100644
--- a/be/src/io/fs/local_file_writer.cpp
+++ b/be/src/io/fs/local_file_writer.cpp
@@ -199,7 +199,7 @@ Status LocalFileWriter::_finalize() {
Status LocalFileWriter::_close(bool sync) {
auto fd_reclaim_func = [&](Status st) {
- if (_fd > 9 && 0 != ::close(_fd)) {
+ if (_fd > 0 && 0 != ::close(_fd)) {
return localfs_error(errno, fmt::format("failed to {}, along with
failed to close {}",
st, _path.native()));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]