mirror of
https://github.com/ceph/ceph
synced 2025-01-16 16:03:29 +00:00
mon/PGMonitor: fix primary osd check on deep-scrub
s/!=/==/. Logic was reversed.
Broken in 40bdcb8850
.
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
5516f8c1ff
commit
fed655e3e9
@ -1539,7 +1539,7 @@ bool PGMonitor::preprocess_command(MMonCommand *m)
|
||||
r = -ENOENT;
|
||||
goto reply;
|
||||
}
|
||||
if (pg_map.pg_stat[pgid].acting_primary != -1) {
|
||||
if (pg_map.pg_stat[pgid].acting_primary == -1) {
|
||||
ss << "pg " << pgid << " has no primary osd";
|
||||
r = -EAGAIN;
|
||||
goto reply;
|
||||
|
Loading…
Reference in New Issue
Block a user