This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new c1f15f7e4c6 [fix](catalog) fix wrong check when using
"use_meta_cache=true" (#36533)
c1f15f7e4c6 is described below
commit c1f15f7e4c6db5f1b3b58ab7f9ac70f9af35d1e6
Author: Mingyu Chen <[email protected]>
AuthorDate: Wed Jun 19 18:03:03 2024 +0800
[fix](catalog) fix wrong check when using "use_meta_cache=true" (#36533)
bp #36530
---
fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java
index 48fa0cc14cf..b802c78403d 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java
@@ -726,9 +726,9 @@ public class CatalogMgr implements Writable,
GsonPostProcessable {
HMSExternalCatalog hmsCatalog = (HMSExternalCatalog) catalog;
long dbId;
if (hmsCatalog.getUseMetaCache().get()) {
- dbId =
Env.getCurrentEnv().getExternalMetaIdMgr().getDbId(catalog.getId(), dbName);
- } else {
dbId = Util.genTableIdByName(dbName);
+ } else {
+ dbId =
Env.getCurrentEnv().getExternalMetaIdMgr().getDbId(catalog.getId(), dbName);
}
// -1L means it will be dropped later, ignore
if (dbId == ExternalMetaIdMgr.META_ID_FOR_NOT_EXISTS) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]