]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: crush_ruleset_create_erasure reduce verbosity
authorLoic Dachary <loic@dachary.org>
Mon, 3 Mar 2014 13:43:01 +0000 (14:43 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 17 Mar 2014 08:48:02 +0000 (09:48 +0100)
Only add error message to the stream, not informative messages because
they depend on the caller context.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/OSDMonitor.cc

index beb92a9a3203c980f0208e73fa7ee6b25d88589a..ff4c887301880470175cc239a34bb14e331f91e6 100644 (file)
@@ -2813,7 +2813,6 @@ int OSDMonitor::crush_ruleset_create_erasure(const string &name,
                                             stringstream &ss)
 {
     if (osdmap.crush->rule_exists(name)) {
-      ss << "rule " << name << " already exists";
       err = 0;
       goto reply;
     }
@@ -2822,7 +2821,6 @@ int OSDMonitor::crush_ruleset_create_erasure(const string &name,
     _get_pending_crush(newcrush);
 
     if (newcrush.rule_exists(name)) {
-      ss << "rule " << name << " already exists";
       err = 0;
     } else {
       ErasureCodeInterfaceRef erasure_code;
@@ -2838,7 +2836,6 @@ int OSDMonitor::crush_ruleset_create_erasure(const string &name,
        err = rule;
        goto reply;
       }
-      ss << "created rule " << name << " at " << rule;
       pending_inc.crush.clear();
       newcrush.encode(pending_inc.crush);
     }