mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Add automatic clean-up call for RealmFileStore
This commit is contained in:
parent
204bd2b604
commit
315e126497
@ -14,6 +14,7 @@ using osu.Framework.Statistics;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Models;
|
||||
using osu.Game.Stores;
|
||||
using Realms;
|
||||
|
||||
#nullable enable
|
||||
@ -106,6 +107,8 @@ namespace osu.Game.Database
|
||||
|
||||
private void cleanupPendingDeletions()
|
||||
{
|
||||
new RealmFileStore(this, storage).Cleanup();
|
||||
|
||||
using (var realm = CreateContext())
|
||||
using (var transaction = realm.BeginWrite())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user