]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Show number of divergent_priors in log message
authorDavid Zafman <dzafman@redhat.com>
Thu, 9 Apr 2015 23:26:07 +0000 (16:26 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:23 +0000 (12:50 -0800)
Report dirty_divergent_priors as true or false
Use dout(5) so tests can verify divergent_priors created

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 67da8feb0ff8659f1ff812be5a866ef5e97facf2)

src/osd/PGLog.cc

index b619bcd929bf8a4c9f7f1814c4edeeaa4e2a0e1d..7c11aa90f8a1391961a04178790cece489acd381 100644 (file)
@@ -742,10 +742,12 @@ void PGLog::write_log(
   ObjectStore::Transaction& t, const coll_t& coll, const ghobject_t &log_oid)
 {
   if (is_dirty()) {
-    dout(10) << "write_log with: "
+    dout(5) << "write_log with: "
             << "dirty_to: " << dirty_to
             << ", dirty_from: " << dirty_from
-            << ", dirty_divergent_priors: " << dirty_divergent_priors
+            << ", dirty_divergent_priors: "
+            << (dirty_divergent_priors ? "true" : "false")
+            << ", divergent_priors: " << divergent_priors.size()
             << ", writeout_from: " << writeout_from
             << ", trimmed: " << trimmed
             << dendl;