Skip to content

Commit

Permalink
Merge pull request ceph#3769 from athanatos/wip-10908
Browse files Browse the repository at this point in the history
Wip 10908

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Feb 20, 2015
2 parents f85f7ad + d05539e commit f6098bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/osd/ECBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,9 @@ void ECBackend::start_write(Op *op) {
trans[i->shard];
trans[i->shard].set_use_tbl(parent->transaction_use_tbl());
}
ObjectStore::Transaction empty;
empty.set_use_tbl(parent->transaction_use_tbl());

op->t->generate_transactions(
op->unstable_hash_infos,
ec_impl,
Expand Down Expand Up @@ -1557,7 +1560,7 @@ void ECBackend::start_write(Op *op) {
op->reqid,
op->hoid,
stats,
should_send ? iter->second : ObjectStore::Transaction(),
should_send ? iter->second : empty,
op->version,
op->trim_to,
op->trim_rollback_to,
Expand Down
1 change: 1 addition & 0 deletions src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7678,6 +7678,7 @@ Message * ReplicatedBackend::generate_subop(
<< ", pinfo.last_backfill "
<< pinfo.last_backfill << ")" << dendl;
ObjectStore::Transaction t;
t.set_use_tbl(op_t->get_use_tbl());
::encode(t, wr->get_data());
} else {
::encode(*op_t, wr->get_data());
Expand Down

0 comments on commit f6098bd

Please sign in to comment.