]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::hit_set_persist: write out oi.digest, these objects are immutable
authorSamuel Just <sjust@redhat.com>
Fri, 23 Jan 2015 16:49:28 +0000 (08:49 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 23 Jan 2015 17:07:59 +0000 (09:07 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index 5ebf34dc29d542fa193930a29394fd39e13a8a39..fa8d1dffaddaec47592d7c39867f6015605a0bfe 100644 (file)
@@ -11793,6 +11793,7 @@ 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;