mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move database backup creation to async thread where possible
This commit is contained in:
@ -750,9 +750,9 @@ namespace osu.Game.Database
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId) =>
|
||||
efContextFactory?.Get().RulesetInfo.FirstOrDefault(r => r.ID == rulesetId)?.ShortName;
|
||||
|
||||
public void CreateBackup(string backupFilename)
|
||||
public void CreateBackup(string backupFilename, IDisposable? blockAllOperations = null)
|
||||
{
|
||||
using (BlockAllOperations())
|
||||
using (blockAllOperations ?? BlockAllOperations())
|
||||
{
|
||||
Logger.Log($"Creating full realm database backup at {backupFilename}", LoggingTarget.Database);
|
||||
|
||||
|
Reference in New Issue
Block a user