branch-2.1: [fix](meta-cache) fix refreshOnlyCatalogCache when use_meta_cache = false #44363 (#44461)
Cherry-picked from #44363 Co-authored-by: Socrates <suyiteng@selectdb.com>
This commit is contained in:
committed by
GitHub
parent
6af6d4a5ef
commit
ec068049c7
@ -412,6 +412,7 @@ public abstract class ExternalCatalog
|
||||
if (useMetaCache.get() && metaCache != null) {
|
||||
metaCache.invalidateAll();
|
||||
} else if (!useMetaCache.get()) {
|
||||
this.initialized = false;
|
||||
for (ExternalDatabase<? extends ExternalTable> db : idToDb.values()) {
|
||||
db.setUnInitialized(invalidCache);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user