mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
Merge pull request #6439 from XinzeChi/wip-merge-tnx
osd: merge local_t and op_t txn to single one Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
b9251b4b6f
@ -602,8 +602,6 @@ void ReplicatedBackend::submit_transaction(
|
||||
&op,
|
||||
op_t);
|
||||
|
||||
ObjectStore::Transaction *local_t = new ObjectStore::Transaction;
|
||||
local_t->set_use_tbl(op_t->get_use_tbl());
|
||||
if (!(t->get_temp_added().empty())) {
|
||||
add_temp_objs(t->get_temp_added());
|
||||
}
|
||||
@ -615,7 +613,7 @@ void ReplicatedBackend::submit_transaction(
|
||||
trim_to,
|
||||
trim_rollback_to,
|
||||
true,
|
||||
local_t);
|
||||
op_t);
|
||||
|
||||
op_t->register_on_applied_sync(on_local_applied_sync);
|
||||
op_t->register_on_applied(
|
||||
@ -623,14 +621,11 @@ void ReplicatedBackend::submit_transaction(
|
||||
new C_OSD_OnOpApplied(this, &op)));
|
||||
op_t->register_on_applied(
|
||||
new ObjectStore::C_DeleteTransaction(op_t));
|
||||
op_t->register_on_applied(
|
||||
new ObjectStore::C_DeleteTransaction(local_t));
|
||||
op_t->register_on_commit(
|
||||
parent->bless_context(
|
||||
new C_OSD_OnOpCommit(this, &op)));
|
||||
|
||||
list<ObjectStore::Transaction*> tls;
|
||||
tls.push_back(local_t);
|
||||
tls.push_back(op_t);
|
||||
parent->queue_transactions(tls, op.op);
|
||||
delete t;
|
||||
|
Loading…
Reference in New Issue
Block a user