Skip to content

Commit

Permalink
checked_file_impl: remove unneeded variant of open_checked_file_dma
Browse files Browse the repository at this point in the history
like in integrity_checked_file_impl, we don't need a variant of
open for default file open options.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
Message-Id: <20171113185412.10880-1-raphaelsc@scylladb.com>
  • Loading branch information
raphaelsc authored and duarten committed Nov 13, 2017
1 parent 564046a commit cf8e12c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions checked-file-impl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ inline file make_checked_file(const io_error_handler& error_handler, file f)
future<file>
inline open_checked_file_dma(const io_error_handler& error_handler,
sstring name, open_flags flags,
file_open_options options)
file_open_options options = {})
{
return do_io_check(error_handler, [&] {
return open_file_dma(name, flags, options).then([&] (file f) {
Expand All @@ -139,17 +139,6 @@ inline open_checked_file_dma(const io_error_handler& error_handler,
});
}

future<file>
inline open_checked_file_dma(const io_error_handler& error_handler,
sstring name, open_flags flags)
{
return do_io_check(error_handler, [&] {
return open_file_dma(name, flags).then([&] (file f) {
return make_ready_future<file>(make_checked_file(error_handler, f));
});
});
}

future<file>
inline open_checked_directory(const io_error_handler& error_handler,
sstring name)
Expand Down

0 comments on commit cf8e12c

Please sign in to comment.