Skip to content

Commit 28afcff

Browse files
committed
crimson/osd/pg_map: add assertion
Signed-off-by: Matan Breizman <[email protected]>
1 parent d4d0804 commit 28afcff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crimson/osd/pg_map.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ seastar::future<core_id_t> PGShardMapping::get_or_create_pg_mapping(
5656
});
5757
}).then([this, pgid, FNAME] {
5858
auto find_iter = pg_to_core.find(pgid);
59+
ceph_assert_always(find_iter != pg_to_core.end());
5960
DEBUG("returning pg {} mapping to core {}", pgid, find_iter->second);
6061
return seastar::make_ready_future<core_id_t>(find_iter->second);
6162
});

0 commit comments

Comments
 (0)