Files
scylladb/db/commitlog/commitlog_extensions.hh
Kefu Chai ee36358a60 db: remove unused includes
these unused includes are identified by clang-include-cleaner.
after auditing the source files, all of the reports have been
confirmed.

please note, since we have `using seastar::shared_ptr` in
`seastarx.h`, this renders `#include <seastar/core/shared_ptr.hh>`
unnecessary if we don't need the full definition of `seastar::shared_ptr`.

so, in this change, all the unused includes are removed. but there are
some headers which are actually used, while still being identified by
this tool. these includes are marked with "IWYU pragma: keep".

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
2024-10-04 20:48:18 +08:00

23 lines
505 B
C++

/*
* Copyright 2018-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <seastar/core/seastar.hh>
namespace db {
class commitlog_file_extension {
public:
virtual ~commitlog_file_extension() {}
virtual seastar::future<seastar::file> wrap_file(const seastar::sstring& filename,
seastar::file, seastar::open_flags flags) = 0;
virtual seastar::future<> before_delete(const seastar::sstring& filename) = 0;
};
}