Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 91d9de9

Browse files
committed
fix ReplicationSlotsCountDBSlots for dropping unrelated databases
YAMAMOTO Takashi
1 parent 55566c9 commit 91d9de9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/replication/slot.c

+1
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive)
727727

728728
/* not database specific, skip */
729729
if (s->data.database == InvalidOid)
730+
continue;
730731

731732
/* not our database, skip */
732733
if (s->data.database != dboid)

0 commit comments

Comments
 (0)