mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Use exactName for migration lock
This commit is contained in:
parent
5dd5c27289
commit
76cee6a3ff
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ public static class StartupTasks
|
|||
Stopwatch totalStopwatch = Stopwatch.StartNew();
|
||||
Stopwatch stopwatch = Stopwatch.StartNew();
|
||||
Logger.Info("Migrating database...", LogArea.Database);
|
||||
MySqlDistributedLock mutex = new("LighthouseMigration", ServerConfiguration.Instance.DbConnectionString);
|
||||
MySqlDistributedLock mutex = new("LighthouseMigration", ServerConfiguration.Instance.DbConnectionString, exactName: true);
|
||||
await using (await mutex.AcquireAsync())
|
||||
{
|
||||
stopwatch.Stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue