Skip to content

Commit

Permalink
file: Fix indentation after previous patch
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Emelyanov <[email protected]>
  • Loading branch information
xemul committed Jun 18, 2024
1 parent 55ab876 commit 8b4993a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1132,11 +1132,11 @@ make_file_impl(int fd, file_open_options options, int flags, struct stat st) noe
});
}

const internal::fs_info& fsi = s_fstype[st_dev];
if (!fsi.append_challenged || options.append_is_unlikely || ((flags & O_ACCMODE) == O_RDONLY)) {
return make_ready_future<shared_ptr<file_impl>>(make_shared<posix_file_real_impl>(fd, open_flags(flags), std::move(options), fsi, st_dev));
}
return make_ready_future<shared_ptr<file_impl>>(make_shared<append_challenged_posix_file_impl>(fd, open_flags(flags), std::move(options), fsi, st_dev));
const internal::fs_info& fsi = s_fstype[st_dev];
if (!fsi.append_challenged || options.append_is_unlikely || ((flags & O_ACCMODE) == O_RDONLY)) {
return make_ready_future<shared_ptr<file_impl>>(make_shared<posix_file_real_impl>(fd, open_flags(flags), std::move(options), fsi, st_dev));
}
return make_ready_future<shared_ptr<file_impl>>(make_shared<append_challenged_posix_file_impl>(fd, open_flags(flags), std::move(options), fsi, st_dev));
}

file::file(seastar::file_handle&& handle) noexcept
Expand Down

0 comments on commit 8b4993a

Please sign in to comment.