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:
github-actions[bot]
2024-11-22 22:41:10 +08:00
committed by GitHub
parent 6af6d4a5ef
commit ec068049c7
3 changed files with 209 additions and 73 deletions

View File

@ -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);
}