접속 집계 교착으로 인한 턴 정지를 방지
This commit is contained in:
@@ -6,6 +6,9 @@ interface TryLockRow {
|
||||
acquired: boolean;
|
||||
}
|
||||
|
||||
/** Serializes score/traffic writers whose table lock order otherwise differs by entry point. */
|
||||
export const GENERAL_ACCESS_PERSISTENCE_LOCK = 'general-access:persistence';
|
||||
|
||||
const lockKeySql = (logicalKey: string): GamePrisma.Sql =>
|
||||
GamePrisma.sql`hashtextextended(current_schema() || chr(31) || ${logicalKey}, 0)`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user