]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: make 'osd crush link ...' idempotent
authorSage Weil <sage@inktank.com>
Thu, 18 Apr 2013 18:17:30 +0000 (11:17 -0700)
committerSage Weil <sage@inktank.com>
Thu, 18 Apr 2013 18:20:20 +0000 (11:20 -0700)
We fixed move in f5ba0fbbe73e11418634bc95e1fc36d17edccf37 but missed this
one.

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

index 40103ec402f8188568c41ca75b17b88872316cf3..ec15d0abd288db66dc5ff2a261c16e6a26fa8381 100644 (file)
@@ -2691,7 +2691,8 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
            return true;
          }
        } else {
-           ss << "no need to move item id " << id << " name '" << name << "' to location " << loc << " in crush map";
+         ss << "no need to move item id " << id << " name '" << name << "' to location " << loc << " in crush map";
+         err = 0;
        }
       } while (false);
     }