From: Sage Weil Date: Sun, 23 Feb 2014 05:31:48 +0000 (-0800) Subject: mon/PGMonitor: fix primary osd check on deep-scrub X-Git-Tag: v0.78~133^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fed655e3e9b86444ac2dc1e3a300e3d2fbdecf55;p=ceph.git mon/PGMonitor: fix primary osd check on deep-scrub s/!=/==/. Logic was reversed. Broken in 40bdcb88504aea6288d461d29d24d5b0bf7aeebc. Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 43683b67fc97..6dea1c9369b0 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -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;