Check on cache value, not catalog

talha_tes1
Ahmet Gedemenli 2021-10-19 11:11:45 +03:00
parent 9cbb33a448
commit 21a184f2e7
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ ShouldUndistributeCitusLocalTable(Oid relationId)
*/
return false;
}
if (!AutoConvertedViaCatalog(relationOid))
CitusTableCacheEntry *cacheEntry = GetCitusTableCacheEntry(relationOid);
if (!cacheEntry->autoConverted)
{
/*
* The relation is connected to a (or, is a) Citus Local Table created