From b9b697e39df28b007d796de9feffe06e4409092e Mon Sep 17 00:00:00 2001 From: bx0 Date: Mon, 14 Feb 2022 11:18:50 +0800 Subject: [PATCH] Multiple outlines with the same name can be created when no database is specified --- src/rootserver/ob_root_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rootserver/ob_root_service.cpp b/src/rootserver/ob_root_service.cpp index bfe7d5ad9b..d4644e8cf6 100644 --- a/src/rootserver/ob_root_service.cpp +++ b/src/rootserver/ob_root_service.cpp @@ -6533,7 +6533,7 @@ int ObRootService::create_outline(const ObCreateOutlineArg& arg) LOG_WARN("get schema guard in inner table failed", K(ret)); } else if (database_name == OB_OUTLINE_DEFAULT_DATABASE_NAME) { // if not specify database, set default database name and database id; - outline_info.set_database_id(OB_OUTLINE_DEFAULT_DATABASE_ID); + outline_info.set_database_id(combine_id(tenant_id, OB_OUTLINE_DEFAULT_DATABASE_ID)); } else if (OB_FAIL(schema_guard.get_database_schema(tenant_id, database_name, db_schema))) { LOG_WARN("get database schema failed", K(ret)); } else if (NULL == db_schema) { -- GitLab