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:
Sage Weil 2014-02-22 21:31:48 -08:00
parent 5516f8c1ff
commit fed655e3e9

View File

@ -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;