]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix head_existed check
authorSage Weil <sage@newdream.net>
Thu, 25 Jun 2009 04:16:28 +0000 (21:16 -0700)
committerSage Weil <sage@newdream.net>
Thu, 25 Jun 2009 04:16:28 +0000 (21:16 -0700)
ssc isn't always defined, as we pass here for !may_read() too.

src/osd/ReplicatedPG.cc

index bf782952eafdfa59ef382f21b2492e74f5e40f8e..df298b1abfbb986a93bd77ed01a475a308fb983b 100644 (file)
@@ -1624,7 +1624,7 @@ int ReplicatedPG::prepare_transaction(OpContext *ctx)
   // we'll need this to log
   eversion_t old_version = poi->version;
 
-  bool head_existed = ctx->obs->ssc->snapset.head_exists;
+  bool head_existed = ctx->obs->exists;
 
   // prepare the actual mutation
   int result = do_osd_ops(ctx, ctx->ops, ctx->outdata);