aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareRepository.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-25 11:22:42 -0600
committerGitHub <noreply@github.com>2022-11-25 11:22:42 -0600
commitfd56f6fc0d2f1fa081c312bb5dea976b40131b94 (patch)
tree25c0f34aeab4d8e7f1e5744b404b9a7c0edab8af /src/slskd/Shares/IShareRepository.cs
parent31694fc9b2cdf69413853ce2c362e4b5d3c47401 (diff)
parent450cea6f27c7f3f941512c1f3633954994a1947b (diff)
downloadslskd-fd56f6fc0d2f1fa081c312bb5dea976b40131b94.tar.gz
Merge pull request #781 from slskd/vacuum
Run database vacuum after scanning and after backing up
Diffstat (limited to 'src/slskd/Shares/IShareRepository.cs')
-rw-r--r--src/slskd/Shares/IShareRepository.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Shares/IShareRepository.cs b/src/slskd/Shares/IShareRepository.cs
index 63d19c45..f1e59889 100644
--- a/src/slskd/Shares/IShareRepository.cs
+++ b/src/slskd/Shares/IShareRepository.cs
@@ -181,5 +181,10 @@ namespace slskd.Shares
/// <param name="timestamp">The timestamp associated with the scan.</param>
/// <param name="end">The timestamp at the conclusion of the scan.</param>
void UpdateScan(long timestamp, long end);
+
+ /// <summary>
+ /// Reclaims unused space.
+ /// </summary>
+ void Vacuum();
}
} \ No newline at end of file