Signed-off-by: Sage Weil <sage@redhat.com>
// 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" : "")
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;