mirror of
https://github.com/ppy/osu
synced 2024-12-27 09:23:15 +00:00
Ensure initial beatmap processing is done inside the import transaction
This commit is contained in:
parent
8116a4b6f6
commit
8b6665cb5b
@ -338,11 +338,11 @@ namespace osu.Game.Database
|
||||
// import to store
|
||||
realm.Add(item);
|
||||
|
||||
PostImport(item, realm);
|
||||
|
||||
transaction.Commit();
|
||||
}
|
||||
|
||||
PostImport(item, realm);
|
||||
|
||||
LogForModel(item, @"Import successfully completed!");
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -479,7 +479,7 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Perform any final actions after the import has been committed to the database.
|
||||
/// Perform any final actions before the import has been committed to the database.
|
||||
/// </summary>
|
||||
/// <param name="model">The model prepared for import.</param>
|
||||
/// <param name="realm">The current realm context.</param>
|
||||
|
Loading…
Reference in New Issue
Block a user