]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: fix primary osd check on deep-scrub 1301/head
authorSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 05:31:48 +0000 (21:31 -0800)
committerSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 05:31:48 +0000 (21:31 -0800)
s/!=/==/.  Logic was reversed.

Broken in 40bdcb88504aea6288d461d29d24d5b0bf7aeebc.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMonitor.cc

index 43683b67fc97d192c8bba79080a97a2398a95e71..6dea1c9369b04851aca21ae811e3536b6f7ae1ff 100644 (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;