]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG,PG: update snap_collections on replica
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 8 Jun 2011 18:23:56 +0000 (11:23 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 22 Jun 2011 18:41:17 +0000 (11:41 -0700)
commit79f76dcaf00c957e2fe86908e70a53c945e02adf
treeb3656376fa576ec3f364fc8f0ef7462b5b07d55c
parent05c3edfe61a56136ad5d019bf9a0e80dc25bc43a
ReplicatedPG,PG: update snap_collections on replica

Previously, snap_collections did not get updated on the replica.  As a
result, snap collections would not necessarily get trimmed when the
replica recieved and updated purged_snaps via a pg info from the
primary.  Now, the log entries in sub_op_modified are scanned to check
for any new snap collections.  The first and last snaps on a clone entry
are possibly new snap collections.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc