mirror of https://github.com/citusdata/citus.git
Merge branch 'main' into fix_relation_acess_2
commit
cbdc2b3019
|
@ -420,7 +420,7 @@ IncrementSharedConnectionCounter(const char *hostname, int port)
|
||||||
{
|
{
|
||||||
SharedConnStatsHashKey connKey;
|
SharedConnStatsHashKey connKey;
|
||||||
|
|
||||||
if (GetMaxSharedPoolSize() == DISABLE_CONNECTION_THROTTLING)
|
if (MaxSharedPoolSize == DISABLE_CONNECTION_THROTTLING)
|
||||||
{
|
{
|
||||||
/* connection throttling disabled */
|
/* connection throttling disabled */
|
||||||
return;
|
return;
|
||||||
|
@ -484,7 +484,11 @@ DecrementSharedConnectionCounter(const char *hostname, int port)
|
||||||
{
|
{
|
||||||
SharedConnStatsHashKey connKey;
|
SharedConnStatsHashKey connKey;
|
||||||
|
|
||||||
if (GetMaxSharedPoolSize() == DISABLE_CONNECTION_THROTTLING)
|
/*
|
||||||
|
* Do not call GetMaxSharedPoolSize() here, since it may read from
|
||||||
|
* the catalog and we may be in the process exit handler.
|
||||||
|
*/
|
||||||
|
if (MaxSharedPoolSize == DISABLE_CONNECTION_THROTTLING)
|
||||||
{
|
{
|
||||||
/* connection throttling disabled */
|
/* connection throttling disabled */
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue