]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: update ObjectContext's object_info_t for new hit_set objects
authorSage Weil <sage@inktank.com>
Fri, 10 Jan 2014 00:04:21 +0000 (16:04 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:49 +0000 (16:19 -0800)
commitd41a1d3d8289d198f8ca07d887fa4040940d125f
tree59f600c9f2da39ac44dc57007a48fba5ca8a7933
parent10547e6713ef2268e2f5985adf3c5712f57445c1
osd/ReplicatedPG: update ObjectContext's object_info_t for new hit_set objects

We were fabricating an object_info_t correctly and writing it to disk, but
it was not reflected by the in-memory ObjectContext.  If something came
along quickly (like backfill) and tried to use it, the info would be
invalid.

Fix this by fabricating it in the obc and copying it to the new_obs for
the update.

Fixes: #7122
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc