dout(10) << __func__ << " " << obc->obs.oi.soid << dendl;
hobject_t temp_target = generate_temp_object();
- PromoteCallback *cb = new PromoteCallback(obc, temp_target, this);
+ PromoteCallback *cb = new PromoteCallback(op, obc, temp_target, this);
object_locator_t oloc(m->get_object_locator());
oloc.pool = pool.info.tier_of;
start_copy(cb, obc, obc->obs.oi.soid, oloc, 0, temp_target);
friend class CopyFromCallback;
class PromoteCallback: public CopyCallback {
+ OpRequestRef op;
ObjectContextRef obc;
hobject_t temp_obj;
ReplicatedPG *pg;
public:
- PromoteCallback(ObjectContextRef obc_, const hobject_t& temp_obj_,
+ PromoteCallback(OpRequestRef op_, ObjectContextRef obc_,
+ const hobject_t& temp_obj_,
ReplicatedPG *pg_) :
- obc(obc_), temp_obj(temp_obj_), pg(pg_) {}
+ op(op_), obc(obc_), temp_obj(temp_obj_), pg(pg_) {}
virtual void finish(CopyCallbackResults results) {
CopyResults* results_data = results.get<1>();