mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Centralise BeginTransaction and disable transaction use for now
This commit is contained in:
@ -184,7 +184,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
var context = importContext.Value;
|
||||
|
||||
using (var transaction = context.Database.BeginTransaction())
|
||||
using (var transaction = context.BeginTransaction())
|
||||
{
|
||||
// create local stores so we can isolate and thread safely, and share a context/transaction.
|
||||
var iFiles = new FileStore(() => context, storage);
|
||||
@ -295,7 +295,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
var context = importContext.Value;
|
||||
|
||||
using (var transaction = context.Database.BeginTransaction())
|
||||
using (var transaction = context.BeginTransaction())
|
||||
{
|
||||
context.ChangeTracker.AutoDetectChangesEnabled = false;
|
||||
|
||||
|
Reference in New Issue
Block a user