[meta] fix: query enables embedded meta only when both meta.address and meta.endpoints are empty
@@ -83,7 +83,12 @@ impl MutableCatalog {
/// MetaEmbedded
/// ```
pub async fn try_create_with_config(conf: Config) -> Result<Self> {
- let local_mode = conf.meta.address.is_empty() || conf.meta.endpoints.is_empty();
+ // - `address` is an old config that accept only one address.
+ // - `endpoints` accepts multiple endpoint candidates.
+ //
+ // If either of these two is configured(non-empty), use remote metasrv.
+ // Otherwise, use a local embedded meta
+ let local_mode = conf.meta.address.is_empty() && conf.meta.endpoints.is_empty();
let meta: Arc<dyn SchemaApi> = if local_mode {
tracing::info!("use embedded meta");
