]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: apply_repop: apply local_t before op_t
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 20 Dec 2011 18:53:36 +0000 (10:53 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 20 Dec 2011 18:53:36 +0000 (10:53 -0800)
We create snap_collections in local_t and clone into them in op_t.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/ReplicatedPG.cc

index 3fe9724eea671ad6163ffdf064a4395a28672258..5be8ead7383cc4771f23492719ab84c3d256b30c 100644 (file)
@@ -2752,8 +2752,8 @@ void ReplicatedPG::apply_repop(RepGather *repop)
 
   repop->applying = true;
 
-  repop->tls.push_back(&repop->ctx->op_t);
   repop->tls.push_back(&repop->ctx->local_t);
+  repop->tls.push_back(&repop->ctx->op_t);
 
   repop->obc->ondisk_write_lock();
   if (repop->ctx->clone_obc)