Skip to content

Commit 3bf5636

Browse files
committed
Use ReplicationSlot.active not .active_pid on 9.4
Fixes #51
1 parent 3bbb8fa commit 3bf5636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pglogical_functions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ pglogical_drop_node(PG_FUNCTION_ARGS)
213213
continue;
214214
}
215215

216+
#if PG_VERSION_NUM < 90500
217+
if (slot->active)
218+
#else
216219
if (slot->active_pid != 0)
220+
#endif
217221
{
218222
SpinLockRelease(&slot->mutex);
219223
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);

0 commit comments

Comments
 (0)