Skip to content

Commit

Permalink
Update local_file_writer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteYue committed May 25, 2024
1 parent 088cf44 commit eea72a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/io/fs/local_file_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit eea72a1

Please sign in to comment.