]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PGLog.h: print olog_can_rollback_to before deciding to rollback 27302/head
authorNeha Ojha <nojha@redhat.com>
Thu, 21 Mar 2019 22:12:20 +0000 (15:12 -0700)
committerPrashant D <pdhange@redhat.com>
Mon, 1 Apr 2019 22:23:56 +0000 (18:23 -0400)
This is particularly important as the crt might have changed before
being passed to merge_object_divergent_entries().

Fixes: http://tracker.ceph.com/issues/38894
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit aa49c57f3942c676d333e1841886881af125ea01)

src/osd/PGLog.h

index 70840c5aef147c80dc1e1e80163b4d60f988fb2f..b920cc6491213d11b7527c92ad30405eecf1e60b 100644 (file)
@@ -1019,6 +1019,11 @@ protected:
                       << " attempting to rollback"
                       << dendl;
     bool can_rollback = true;
+    // We are going to make an important decision based on the
+    // olog_can_rollback_to value we have received, better known it.
+    ldpp_dout(dpp, 10) << __func__ << ": hoid " << hoid
+                       << " olog_can_rollback_to: "
+                       << olog_can_rollback_to << dendl;
     /// Distinguish between 4) and 5)
     for (list<pg_log_entry_t>::const_reverse_iterator i = entries.rbegin();
         i != entries.rend();