]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: improve osd pool create error message readability
authorLoic Dachary <loic@dachary.org>
Wed, 11 Jun 2014 20:53:43 +0000 (22:53 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 13 Jun 2014 10:56:14 +0000 (12:56 +0200)
Add std::endl to separate independent error messages related to erasure
code.

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

index ff0684961ba2dca921d529aa5fc68b56f852411d..46e47cb223d1f5117ac4a1e1b42095778d71baa6 100644 (file)
@@ -2946,7 +2946,7 @@ int OSDMonitor::crush_ruleset_create_erasure(const string &name,
     ErasureCodeInterfaceRef erasure_code;
     int err = get_erasure_code(profile, &erasure_code, ss);
     if (err) {
-      ss << "failed to load plugin using profile " << profile;
+      ss << "failed to load plugin using profile " << profile << std::endl;
       return err;
     }
 
@@ -2974,7 +2974,7 @@ int OSDMonitor::get_erasure_code(const string &erasure_code_profile,
   if (plugin == profile.end()) {
     ss << "cannot determine the erasure code plugin"
        << " because there is no 'plugin' entry in the erasure_code_profile "
-       << profile;
+       << profile << std::endl;
     return -EINVAL;
   }
   ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();