]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: compare nlinks to snapcolls
authorSamuel Just <sam.just@inktank.com>
Thu, 10 Jan 2013 00:41:40 +0000 (16:41 -0800)
committerSage Weil <sage@inktank.com>
Wed, 16 Jan 2013 03:25:11 +0000 (19:25 -0800)
commit8fb0481391be8eb24468f8916fd094ce7fe6ba03
treeb359ff3f74c1824cdb80f7e83502ba0002f1fe1c
parent4affecee236b84fb1340b3cccfe82c627320200f
ReplicatedPG: compare nlinks to snapcolls

nlinks gives us the number of hardlinks to the object.
nlinks should be 1 + snapcolls.size().  This will allow
us to detect links which remain in an erroneous snap
collection.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc