mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +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 totalStopwatch = Stopwatch.StartNew();
|
||||||
Stopwatch stopwatch = Stopwatch.StartNew();
|
Stopwatch stopwatch = Stopwatch.StartNew();
|
||||||
Logger.Info("Migrating database...", LogArea.Database);
|
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())
|
await using (await mutex.AcquireAsync())
|
||||||
{
|
{
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue