Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHANGED] PurgeDeletes() will now keep markers that are less than 30m…
…in old There is a breaking change where PurgeDeletes() accepts now a list of PurgeOpt, not WatchOpt. We needed from WatchOpt only the context, and as it standed, it was bad since user could have passed the IncludeHistory() option to PurgeDeletes(), which would likely "break" the functionality. Also, when invoking PurgeDeletes(), the delete markers than are older than a default of 30 minutes will be deleted, however more recent ones will be kept. The data is always removed, even if a marker is not. The user can change the 30 minutes threshold using a new purge option called DeleteMarkersOlderThan(duration). If set to -1, it restores the old behavior of deleting delete/purge markers, regardless of their age. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
2 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters