]> 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 27105/head
authorNeha Ojha <nojha@redhat.com>
Thu, 21 Mar 2019 22:12:20 +0000 (15:12 -0700)
committerNeha Ojha <nojha@redhat.com>
Fri, 22 Mar 2019 17:21:23 +0000 (10:21 -0700)
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>
src/osd/PGLog.h

index 532128ce6ae6576dfa78b00f06cb57b0287f21a0..1a4a5a5428e600cbcb8ae71cb75268203abd666f 100644 (file)
@@ -1023,6 +1023,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();