Caused error where oi on clone would not get updated version when snaps
was updated. oi.version would lag behind the missing item's need field
during recovery.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
// save adjusted snaps for this object
dout(10) << coid << " snaps " << snaps << " -> " << newsnaps << dendl;
coi.snaps.swap(newsnaps);
+ coi.prior_version = coi.version;
+ coi.version = ctx->at_version;
bl.clear();
::encode(coi, bl);
t->setattr(coll_t(info.pgid), coid, OI_ATTR, bl);