osd/ReplicatedPG: fix finish_flush

Make sure we reallocate a pgbackend transaction at the time when we are
initiating new work.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-02-07 18:10:00 -08:00
parent 34fcf42c69
commit 9ac03ef579

View File

@ -5838,6 +5838,9 @@ void ReplicatedPG::finish_flush(hobject_t oid, tid_t tid, int r)
return;
}
delete fop->ctx->op_t;
fop->ctx->op_t = pgbackend->get_transaction();
r = try_flush_mark_clean(fop);
if (r == -EBUSY) {
reply_ctx(fop->ctx, -EBUSY, obc->obs.oi.version,