Skip to content

(PDB-526) Garbage collect unreferenced environments#919

Merged
senior merged 1 commit intopuppetlabs:masterfrom
kbarber:ticket/master/pdb-526-cleanup-old-envs
Apr 15, 2014
Merged

(PDB-526) Garbage collect unreferenced environments#919
senior merged 1 commit intopuppetlabs:masterfrom
kbarber:ticket/master/pdb-526-cleanup-old-envs

Conversation

@kbarber
Copy link
Contributor

@kbarber kbarber commented Apr 14, 2014

This patch adds a new step for garbage-collect! which removes any environments
that are no longer referenced by reports, facts or catalogs.

It also changes the order that garbage-collect! runs compared to the other
db related cleanup tasks. This is so that unreferenced environments are
cleaned up immediately after nodes and reports are purged, as apposed to
having to wait for the next scheduled internal.

Signed-off-by: Ken Barber ken@bob.sh

This patch adds a new step for garbage-collect! which removes any environments
that are no longer referenced by reports, facts or catalogs.

It also changes the order that garbage-collect! runs compared to the other
db related cleanup tasks. This is so that unreferenced environments are
cleaned up immediately after nodes and reports are purged, as apposed to
having to wait for the next scheduled internal.

Signed-off-by: Ken Barber <ken@bob.sh>
@pljenkinsro
Copy link

💚 Test passed.
Refer to this link for build results: https://jenkins.puppetlabs.com/job/PuppetDB%20Acceptance%20-%20Pull%20Requests/363/

senior added a commit that referenced this pull request Apr 15, 2014
…d-envs

(PDB-526) Garbage collect unreferenced environments
@senior senior merged commit 05875db into puppetlabs:master Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants