]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PGLog.h: print olog_can_rollback_to before deciding to rollback 27284/head
authorNeha Ojha <nojha@redhat.com>
Thu, 21 Mar 2019 22:12:20 +0000 (15:12 -0700)
committerPrashant D <pdhange@redhat.com>
Sun, 31 Mar 2019 23:41:39 +0000 (19:41 -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 3ef21d553b5c0645143c4d075bcc1d1573785531..6cf3cd99d0c1e3c007bdd1ebfcb1e077a9a04d25 100644 (file)
@@ -999,6 +999,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();