Merge pull request from athanatos/wip-10616

Wip 10616

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-01-29 10:18:44 -08:00
commit 880f94895f

View File

@ -11795,9 +11795,12 @@ void ReplicatedPG::hit_set_persist()
obc->obs.oi.mtime = now;
obc->obs.oi.size = bl.length();
obc->obs.exists = true;
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++;