]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: nicer scrub ok message
authorSage Weil <sage@newdream.net>
Fri, 26 Jun 2009 23:47:56 +0000 (16:47 -0700)
committerSage Weil <sage@newdream.net>
Tue, 30 Jun 2009 19:33:00 +0000 (12:33 -0700)
src/osd/PG.cc

index 1ff51be65a0b23e62add48a96ccf61344e093c25..d6e37e7c2982a5badd5d68916a0db5e629a5c515 100644 (file)
@@ -2431,7 +2431,11 @@ void PG::scrub()
   }
   */
 
-  ss << info.pgid << " " << mode << " " << errors << " errors";
+  ss << info.pgid << " " << mode << " ";
+  if (errors)
+    ss << errors << " errors";
+  else
+    ss << "ok";
   if (repair)
     ss << ", " << fixed << " fixed";
   osd->get_logclient()->log(errors ? LOG_ERROR:LOG_INFO, ss);