Merge pull request #57656 from Matan-B/wip-matanb-crimson-get-param

test/crimson/seastore/transaction_manager_test_state: fix compilation…

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Yingxin 2024-05-24 09:39:27 +08:00 committed by GitHub
commit 03ea719c36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,6 +284,7 @@ protected:
auto sec_devices = devices->get_secondary_devices();
auto p_dev = devices->get_primary_device();
auto fut = seastar::now();
#ifdef UNIT_TESTS_BUILT
if (std::get<1>(GetParam()) == integrity_check_t::FULL_CHECK) {
fut = crimson::common::local_conf().set_val(
"seastore_full_integrity_check", "true");
@ -291,6 +292,7 @@ protected:
fut = crimson::common::local_conf().set_val(
"seastore_full_integrity_check", "false");
}
#endif
tm = make_transaction_manager(p_dev, sec_devices, true);
epm = tm->get_epm();
lba_manager = tm->get_lba_manager();
@ -436,6 +438,7 @@ protected:
virtual seastar::future<> _init() final {
auto fut = seastar::now();
#ifdef UNIT_TESTS_BUILT
if (std::get<1>(GetParam()) == integrity_check_t::FULL_CHECK) {
fut = crimson::common::local_conf().set_val(
"seastore_full_integrity_check", "true");
@ -443,6 +446,7 @@ protected:
fut = crimson::common::local_conf().set_val(
"seastore_full_integrity_check", "false");
}
#endif
seastore = make_test_seastore(
std::make_unique<TestMDStoreState::Store>(mdstore_state.get_mdstore()));
return fut.then([this] {