]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: Fix oi.size bug in _rollback_to
authorSamuel Just <samuelj@hq.newdream.net>
Wed, 12 Jan 2011 23:09:51 +0000 (15:09 -0800)
committerSamuel Just <samuelj@hq.newdream.net>
Wed, 12 Jan 2011 23:13:16 +0000 (15:13 -0800)
commit1cdb01b47b0656f5e61715e0ec35329356c651a1
tree61137d2fc5c4983ad86e3b58b45f0bad415ef80b
parent9c80239b6a7106f4ca585c3d36c7de231824936e
ReplicatedPG: Fix oi.size bug in _rollback_to

_rollback_to calls _delete_head before cloning the clone into place.
_delete_head sets the object info size to 0.  _rollback_to now resets
the size to match the rolled back object.  Previously, this bug
manifested as a failed assert in scrub when checking the object sizes.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
src/osd/ReplicatedPG.cc