Commit 91d9de97 authored by Bruce Momjian's avatar Bruce Momjian

fix ReplicationSlotsCountDBSlots for dropping unrelated databases

YAMAMOTO Takashi
parent 55566c9a
...@@ -727,6 +727,7 @@ ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment