Skip to content

Commit 62d11b9

Browse files
committed
new locks; false -> NULL
1 parent 35533e3 commit 62d11b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/pglogical/pglogical_apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ handle_begin(StringInfo s)
134134

135135
in_remote_transaction = true;
136136

137-
pgstat_report_activity(STATE_RUNNING, false);
137+
pgstat_report_activity(STATE_RUNNING, NULL);
138138
}
139139

140140
/*

contrib/pglogical/pglogical_worker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ pglogical_worker_shmem_startup(void)
406406

407407
if (!found)
408408
{
409-
PGLogicalCtx->lock = LWLockAssign();
409+
PGLogicalCtx->lock = &(GetNamedLWLockTranche("pglogical"))->lock;
410410
PGLogicalCtx->supervisor = NULL;
411411
PGLogicalCtx->total_workers = max_worker_processes;
412412
memset(PGLogicalCtx->workers, 0,
@@ -430,7 +430,7 @@ pglogical_worker_shmem_init(void)
430430
* tries to allocate or free blocks from this array at once. There won't
431431
* be enough contention to make anything fancier worth doing.
432432
*/
433-
RequestAddinLWLocks(1);
433+
RequestNamedLWLockTranche("pglogical", 1);
434434

435435
/*
436436
* Whether this is a first startup or crash recovery, we'll be re-initing

0 commit comments

Comments
 (0)