Skip to content

Commit d4b6475

Browse files
committed
new locks; false -> NULL
1 parent fca97a7 commit d4b6475

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ pglogical_worker_shmem_startup(void)
407407

408408
if (!found)
409409
{
410-
PGLogicalCtx->lock = LWLockAssign();
410+
// PGLogicalCtx->lock = LWLockAssign();
411+
PGLogicalCtx->lock = &(GetNamedLWLockTranche("pglogical"))->lock;
411412
PGLogicalCtx->supervisor = NULL;
412413
PGLogicalCtx->total_workers = max_worker_processes;
413414
memset(PGLogicalCtx->workers, 0,
@@ -431,7 +432,8 @@ pglogical_worker_shmem_init(void)
431432
* tries to allocate or free blocks from this array at once. There won't
432433
* be enough contention to make anything fancier worth doing.
433434
*/
434-
RequestAddinLWLocks(1);
435+
// RequestAddinLWLocks(1);
436+
RequestNamedLWLockTranche("pglogical", 1);
435437

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy