From 0b26568b262c6c740e5c7efebeb6862497cd7879 Mon Sep 17 00:00:00 2001 From: ald_productions Date: Thu, 9 Jul 2026 23:00:44 -0700 Subject: [PATCH] docs(database) Fix inaccurate description of lock in comment --- src/database/Database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/Database.ts b/src/database/Database.ts index e16f46ffa..55c9dac51 100644 --- a/src/database/Database.ts +++ b/src/database/Database.ts @@ -111,7 +111,7 @@ export async function initDatabase(): Promise { if (applyMigrations) { const qr = dbConnection.createQueryRunner(); /* - The transaction lock ensures that exactly one server is attempting to run migrations at a time. + The advisory lock ensures that exactly one server is attempting to run migrations at a time. It is session-specific, so should be released if a crash occurs. It is also blocking, so all servers can run their logic. */