mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
fix ReplicationSlotsCountDBSlots for dropping unrelated databases
YAMAMOTO Takashi
This commit is contained in:
@@ -727,6 +727,7 @@ ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive)
|
|||||||
|
|
||||||
/* not database specific, skip */
|
/* not database specific, skip */
|
||||||
if (s->data.database == InvalidOid)
|
if (s->data.database == InvalidOid)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* not our database, skip */
|
/* not our database, skip */
|
||||||
if (s->data.database != dboid)
|
if (s->data.database != dboid)
|
||||||
|
Reference in New Issue
Block a user