mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
Merge pull request #14979 from liewegas/wip-19874
mon: fix prime_pg_temp overrun common/Finisher: fix uninitialized variable warning Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
952a7beb61
@ -1077,7 +1077,7 @@ void OSDMonitor::prime_pg_temp(
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!osdmap.have_pg_pool(pgid.pool())) {
|
||||
if (!osdmap.pg_exists(pgid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -285,6 +285,7 @@ public:
|
||||
int *acting_primary) const {
|
||||
auto p = pools.find(pgid.pool());
|
||||
assert(p != pools.end());
|
||||
assert(pgid.ps() < p->second.pg_num);
|
||||
p->second.get(pgid.ps(), up, up_primary, acting, acting_primary);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user