-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Batch pruning of slabs after deleting objects from the database (#1150)
This speeds up deletions and avoids redundant deletions in scenarios where files get deleted rapidly. e.g. when running `rclone sync` which might replace lots of files one-by-one. It also puts the pruning of slabs into a background goroutine. There is no reason for an object deletion to fail when pruning slabs fails. This might lead to brief inconsistencies on the object stats endpoint but will greatly improve the speed at which we can delete objects and also reduce the database locking necessary when pruning slabs. Closes #1149
- Loading branch information
Showing
4 changed files
with
100 additions
and
31 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
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