1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 22:20:53 +08:00

Avoid closing initial context after migrations (unnecessary)

This commit is contained in:
Dean Herbert
2021-01-12 14:42:43 +09:00
Unverified
parent 0dca9c8c46
commit 2e4c3c8e39
+3 -5
View File
@@ -38,11 +38,9 @@ namespace osu.Game.Database
threadContexts = new ThreadLocal<Realm>(createContext, true);
using (var realm = Get())
{
Logger.Log($"Opened realm {database_name} at version {realm.Config.SchemaVersion}");
// creating a context will ensure our schema is up-to-date and migrated.
}
// creating a context will ensure our schema is up-to-date and migrated.
var realm = Get();
Logger.Log($"Opened realm \"{realm.Config.DatabasePath}\" at version {realm.Config.SchemaVersion}");
}
private void onMigration(Migration migration, ulong lastSchemaVersion)