From 402e646a09e1a957985a5bfdbf9ee6a90686055b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 3 Mar 2014 14:43:01 +0100 Subject: [PATCH] mon: crush_ruleset_create_erasure reduce verbosity Only add error message to the stream, not informative messages because they depend on the caller context. Signed-off-by: Loic Dachary --- src/mon/OSDMonitor.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index beb92a9a3203c..ff4c887301880 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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); } -- 2.39.5