Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/lib/homestore_backend/tests/homeobj_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,14 @@ class HomeObjectFixture : public ::testing::Test {
}

// set v_chunk_id to IPC
run_on_pg_leader(pg_id, [&]() {
auto v_chunkID = _obj_inst->get_shard_v_chunk_id(shard_id);
RELEASE_ASSERT(v_chunkID.has_value(), "failed to get shard v_chunk_id");
g_helper->set_auxiliary_uint64_id(v_chunkID.value());
});
run_on_pg_leader_with_retry(pg_id,
[&] { return g_helper->get_auxiliary_uint64_id() != UINT64_MAX; },
[&]() -> bool {
auto v_chunkID = _obj_inst->get_shard_v_chunk_id(shard_id);
RELEASE_ASSERT(v_chunkID.has_value(), "failed to get shard v_chunk_id");
g_helper->set_auxiliary_uint64_id(v_chunkID.value());
return true;
});

// get v_chunk_id from IPC and compare with local
auto leader_v_chunk_id = g_helper->get_auxiliary_uint64_id();
Expand Down