index 45ed7e40e894f9a4831b30f8e016766a3071c5a7..76e5573660511bd08281017588e80d13e5079537 100644 (file)
@@ -727,6 +727,7 @@ ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive)
/* not database specific, skip */
if (s->data.database == InvalidOid)
+ continue;
/* not our database, skip */
if (s->data.database != dboid)