summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2014-03-07 16:42:18 +0000
committerBruce Momjian2014-03-07 16:42:18 +0000
commit91d9de97518b26a1e0d601b2c1580f5225030e56 (patch)
tree9aa64d3b7d9c69d0014f63a37376732599294c9f
parent55566c9a740144439b54ff3aacbd43d11b6de52f (diff)
fix ReplicationSlotsCountDBSlots for dropping unrelated databases
YAMAMOTO Takashi
-rw-r--r--src/backend/replication/slot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 45ed7e40e89..76e55736605 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -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)