summary refs log tree commit diff
diff options
context:
space:
mode:
authorald_productions <gituser@aldproductions.net>2026-07-09 23:00:44 -0700
committerald_productions <gituser@aldproductions.net>2026-07-09 23:00:44 -0700
commit0b26568b262c6c740e5c7efebeb6862497cd7879 (patch)
tree8519d6c7f6b30f66cbbcb6e03e2e9dc314160224
parentfix(migration): Ensure that only ONE server can attempt to apply migrations a... (diff)
downloadserver-ts-0b26568b262c6c740e5c7efebeb6862497cd7879.tar.xz
docs(database) Fix inaccurate description of lock in comment
-rw-r--r--src/database/Database.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/Database.ts b/src/database/Database.ts

index e16f46ff..55c9dac5 100644 --- a/src/database/Database.ts +++ b/src/database/Database.ts
@@ -111,7 +111,7 @@ export async function initDatabase(): Promise<DataSource> { 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. */