Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Purge method does not remove #17

Open
marusicbostjan opened this issue Sep 1, 2023 · 1 comment
Open

The Purge method does not remove #17

marusicbostjan opened this issue Sep 1, 2023 · 1 comment

Comments

@marusicbostjan
Copy link

Despite the fact that the comment in purge.go says "Purge deletes expired locks...", the Purge method does not do a delete/remove of entries in the locks collection. As a result these entries tend to accumulate over time.

Currently the Purge method only removes the locks information from the mongo collection with FindOneAndUpdate. I would be nice if Purge implemented a proper garbage collection.

@dariuschandrafoodpanda
Copy link

dariuschandrafoodpanda commented May 7, 2024

Agree with this one. Can the owner of this repo please merge this change? It is very useful to have the entries cleaned up every period

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

No branches or pull requests

2 participants