From bde8222932bd5a7c6826b18ddf5af599bfec581b Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 24 Jan 2017 20:59:33 -0800 Subject: [PATCH] doc: update osd snap trimming with a little more detail Signed-off-by: Greg Farnum --- doc/dev/osd_internals/snaps.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/dev/osd_internals/snaps.rst b/doc/dev/osd_internals/snaps.rst index 95cc14944b5..e17378fd2a6 100644 --- a/doc/dev/osd_internals/snaps.rst +++ b/doc/dev/osd_internals/snaps.rst @@ -74,6 +74,9 @@ pg is clean and not scrubbing. #. We determine the next object for trimming out of PG::snap_mapper. For each object, we create a log entry and repop updating the object info and the snap set (including adjusting the overlaps). + If the object is a clone which no longer belongs to any live snapshots, + it is removed here. (See PrimaryLogPG::trim_object() when new_snaps + is empty.) #. We also locally update our *SnapMapper* instance with the object's new snaps. #. The log entry containing the modification of the object also @@ -83,6 +86,7 @@ pg is clean and not scrubbing. the new set of purged_snaps along with the rest of the info. + Recovery -------- Because the trim operations are implemented using repops and log entries, -- 2.47.3