From: Sage Weil Date: Sat, 8 Feb 2014 02:10:00 +0000 (-0800) Subject: osd/ReplicatedPG: fix finish_flush X-Git-Tag: v0.78~166^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ac03ef5791a8543faadc8de1e4c09aa8824741e;p=ceph.git 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 --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 8dcc54b1ca5..a6afed2e0c6 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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,