From: Sage Weil Date: Mon, 20 Feb 2017 18:19:39 +0000 (-0500) Subject: osdc/Objecter: track latest epoch in op_target_t X-Git-Tag: v12.0.1~278^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57dfcb62c1619b97213b2195244bd0917832e1b3;p=ceph.git osdc/Objecter: track latest epoch in op_target_t Signed-off-by: Sage Weil --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index d83bcf17b50a..87dd5aa6fab1 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -2661,7 +2661,9 @@ int Objecter::_calc_target(op_target_t *t, Connection *con, bool any_change) // rwlock is locked bool is_read = t->flags & CEPH_OSD_FLAG_READ; bool is_write = t->flags & CEPH_OSD_FLAG_WRITE; - ldout(cct,20) << __func__ << " base " << t->base_oid << " " << t->base_oloc + t->epoch = osdmap->get_epoch(); + ldout(cct,20) << __func__ << " epoch " << t->epoch + << " base " << t->base_oid << " " << t->base_oloc << " precalc_pgid " << (int)t->precalc_pgid << " pgid " << t->base_pgid << (is_read ? " is_read" : "") diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index fc8dce0304cd..bea8d136abe1 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -1182,6 +1182,9 @@ public: struct op_target_t { int flags = 0; + + epoch_t epoch = 0; ///< latest epoch we calculated the mapping + object_t base_oid; object_locator_t base_oloc; object_t target_oid;