mirror of https://github.com/citusdata/citus.git
Fix a relcache reference leak in stats collection.
In DistributedTablesSize() we didn't close the relations that had replication factor > 2. This caused relcache reference leaks, and warning messages like following in logs: WARNING: relcache reference leak: relation "researchers" not closedpull/1764/head
parent
5984e7f009
commit
6d79d25101
|
@ -397,6 +397,7 @@ DistributedTablesSize(List *distTableOids)
|
|||
if (PartitionMethod(relationId) == DISTRIBUTE_BY_HASH &&
|
||||
!SingleReplicatedTable(relationId))
|
||||
{
|
||||
heap_close(relation, AccessShareLock);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue