From 76cee6a3ff27c2d4d209c1a223adbc12885e5ad7 Mon Sep 17 00:00:00 2001 From: Slendy Date: Tue, 21 Feb 2023 16:37:00 -0600 Subject: [PATCH] Use exactName for migration lock --- ProjectLighthouse/StartupTasks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/StartupTasks.cs b/ProjectLighthouse/StartupTasks.cs index 124b3e26..8e13ca73 100644 --- a/ProjectLighthouse/StartupTasks.cs +++ b/ProjectLighthouse/StartupTasks.cs @@ -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();