Fixing these warnings:
src/crimson/os/seastore/seastore.cc:83: 'omaptree_initialize' defined but not used [-Wunused-function]
src/crimson/osd/replicated_recovery_backend.cc:733: 'nullopt_if_empty' defined but not used [-Wunused-function]
src/test/rgw/test_rgw_kms_cache.cc:63: 'rethrow' defined but not used [-Wunused-function]
src/test/librados/test_cxx.cc:215: variable 'cmd' set but not used [-Wunused-but-set-variable]
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
using crimson::os::seastore::omap_manager::BtreeOMapManager;
using crimson::os::seastore::log_manager::LogManager;
-static OMapManager::initialize_omap_ret
-omaptree_initialize(
- Transaction& t,
- BtreeOMapManager& mgr,
- omap_type_t type,
- Onode& onode,
- Device& device)
-{
- return mgr.initialize_omap(
- t, onode.get_metadata_hint(device.get_block_size()), type);
-}
-
class FileMDStore final : public SeaStore::MDStore {
std::string root;
public:
}));
}
-static std::optional<std::string> nullopt_if_empty(const std::string& s)
-{
- return s.empty() ? std::nullopt : std::make_optional(s);
-}
-
static bool is_too_many_entries_per_chunk(const PushOp* push_op)
{
const uint64_t entries_per_chunk =
flags
);
- char *cmd[2];
- cmd[0] = (char *)cmdstr.c_str();
- cmd[1] = NULL;
-
int ret = cluster.mon_command(std::move(cmdstr), {}, NULL, NULL);
if (ret) {
oss << "rados_mon_command osd pool set set_pool_flags_pp failed with error " << ret;
: rgw::kms::KMSCache(g_ceph_context, std::make_unique<FakeKeyring>()) {};
};
-static void rethrow(const std::exception_ptr& eptr) {
- if (eptr) {
- std::rethrow_exception(eptr);
- }
-}
-
TEST_F(TestKMSCacheReaperLifecycle, Threaded) {
initialize_ttl_reaper(std::nullopt);
EXPECT_TRUE(reaper_initialized());