mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 13:40:56 +08:00
Fix Invalid database ID error
This fixes a superfluous error that happened during cache invalidation.
This commit is contained in:
parent
662be94d69
commit
eb32081085
@ -44,7 +44,7 @@ void _cache_invalidate_extload(void);
|
||||
static void
|
||||
inval_cache_callback(Datum arg, Oid relid)
|
||||
{
|
||||
Catalog *catalog = catalog_get();
|
||||
Catalog *catalog;
|
||||
|
||||
if (!extension_is_loaded())
|
||||
return;
|
||||
@ -58,6 +58,8 @@ inval_cache_callback(Datum arg, Oid relid)
|
||||
return;
|
||||
}
|
||||
|
||||
catalog = catalog_get();
|
||||
|
||||
if (relid == catalog_get_cache_proxy_id(catalog, CACHE_TYPE_HYPERTABLE))
|
||||
{
|
||||
hypertable_cache_invalidate_callback();
|
||||
|
Loading…
x
Reference in New Issue
Block a user