Use exactName for migration lock

This commit is contained in:
Slendy 2023-02-21 16:37:00 -06:00
commit 76cee6a3ff
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -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();