class C_SyntheticOnReadable : public Context {
public:
SyntheticWorkloadState *state;
- ObjectStore::Transaction *t;
ghobject_t hoid;
- C_SyntheticOnReadable(SyntheticWorkloadState *state,
- ObjectStore::Transaction *t, ghobject_t hoid)
- : state(state), t(t), hoid(hoid) {}
+ C_SyntheticOnReadable(SyntheticWorkloadState *state, ghobject_t hoid)
+ : state(state), hoid(hoid) {}
void finish(int r) {
Mutex::Locker locker(state->lock);
class C_SyntheticOnStash : public Context {
public:
SyntheticWorkloadState *state;
- ObjectStore::Transaction *t;
ghobject_t oid, noid;
C_SyntheticOnStash(SyntheticWorkloadState *state,
- ObjectStore::Transaction *t, ghobject_t oid,
- ghobject_t noid)
- : state(state), t(t), oid(oid), noid(noid) {}
+ ghobject_t oid, ghobject_t noid)
+ : state(state), oid(oid), noid(noid) {}
void finish(int r) {
Mutex::Locker locker(state->lock);
class C_SyntheticOnClone : public Context {
public:
SyntheticWorkloadState *state;
- ObjectStore::Transaction *t;
ghobject_t oid, noid;
C_SyntheticOnClone(SyntheticWorkloadState *state,
- ObjectStore::Transaction *t, ghobject_t oid, ghobject_t noid)
- : state(state), t(t), oid(oid), noid(noid) {}
+ ghobject_t oid, ghobject_t noid)
+ : state(state), oid(oid), noid(noid) {}
void finish(int r) {
Mutex::Locker locker(state->lock);
in_flight_objects.insert(new_obj);
if (!contents.count(new_obj))
contents[new_obj] = Object();
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, new_obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, new_obj));
delete t;
return status;
}
contents.erase(old_obj);
int status = store->queue_transaction(
osr, std::move(*t),
- new C_SyntheticOnStash(this, t, old_obj, new_obj));
+ new C_SyntheticOnStash(this, old_obj, new_obj));
delete t;
return status;
}
contents[new_obj].data.clear();
contents[new_obj].data.append(contents[old_obj].data.c_str(),
contents[old_obj].data.length());
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnClone(this, t, old_obj, new_obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnClone(this, old_obj, new_obj));
delete t;
return status;
}
t->setattrs(cid, obj, attrs);
++in_flight;
in_flight_objects.insert(obj);
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, obj));
delete t;
return status;
}
contents[obj].attrs.erase(it->first);
++in_flight;
in_flight_objects.insert(obj);
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, obj));
delete t;
return status;
}
t->write(cid, new_obj, offset, len, bl);
++in_flight;
in_flight_objects.insert(new_obj);
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, new_obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, new_obj));
delete t;
return status;
}
bl.swap(data);
}
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, obj));
delete t;
return status;
}
available_objects.erase(to_remove);
in_flight_objects.insert(to_remove);
contents.erase(to_remove);
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, to_remove));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, to_remove));
delete t;
return status;
}
t->zero(cid, new_obj, offset, len);
++in_flight;
in_flight_objects.insert(new_obj);
- int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, t, new_obj));
+ int status = store->queue_transaction(osr, std::move(*t), new C_SyntheticOnReadable(this, new_obj));
delete t;
return status;
}