fix ReplicationSlotsCountDBSlots for dropping unrelated databases

YAMAMOTO Takashi
This commit is contained in:
Bruce Momjian 2014-03-07 11:42:18 -05:00
parent 55566c9a74
commit 91d9de9751
1 changed files with 1 additions and 0 deletions

View 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)