]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::hit_set_persist: update ssc->snapset as well 3536/head
authorSamuel Just <sjust@redhat.com>
Fri, 23 Jan 2015 17:07:44 +0000 (09:07 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 23 Jan 2015 17:08:01 +0000 (09:08 -0800)
This is a hack.  The correct answer is to adapt this method and
finish_ctx to allow this method to use finish_ctx.  This is complicated
by the presence of the hit set trims in the same repop, so for now, we
kick the can down the road a bit.

Fixes: 10616
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index fa8d1dffaddaec47592d7c39867f6015605a0bfe..5acd805f8bb3da422a0b2cbc92f011e600e70cbe 100644 (file)
@@ -11796,7 +11796,9 @@ void ReplicatedPG::hit_set_persist()
   obc->obs.oi.set_data_digest(bl.crc32c(-1));
 
   ctx->new_obs = obc->obs;
-  ctx->new_snapset.head_exists = true;
+
+  obc->ssc->snapset.head_exists = true;
+  ctx->new_snapset = obc->ssc->snapset;
 
   ctx->delta_stats.num_objects++;
   ctx->delta_stats.num_objects_hit_set_archive++;