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>
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++;