diff --git a/source/libs/catalog/src/catalog.c b/source/libs/catalog/src/catalog.c index 32d7cc9f8e22e5fbd4f8186b6b4d88bd4c6a1e4c..5b1a4e0c72d4615fff5b8d99100df1237a095e4e 100644 --- a/source/libs/catalog/src/catalog.c +++ b/source/libs/catalog/src/catalog.c @@ -241,6 +241,9 @@ int32_t ctgGetTbMeta(CTG_PARAMS, SCtgTbMetaCtx* ctx, STableMeta** pTableMeta) { STableMetaOutput *output = NULL; CTG_ERR_RET(ctgGetTbMetaFromCache(CTG_PARAMS_LIST(), ctx, pTableMeta)); + if (*pTableMeta) { + goto _return; + } while (true) { CTG_ERR_JRET(ctgRefreshTbMeta(CTG_PARAMS_LIST(), ctx, &output, false));