]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix finish_flush
authorSage Weil <sage@inktank.com>
Sat, 8 Feb 2014 02:10:00 +0000 (18:10 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:38 +0000 (22:09 -0800)
Make sure we reallocate a pgbackend transaction at the time when we are
initiating new work.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 8dcc54b1ca55a3c132b096fe498ff079348858bf..a6afed2e0c658af71e30136640900f464598cfbd 100644 (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,