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.
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.