The outline created by the database is not specified and cannot be dropped

This commit is contained in:
bx0
2022-02-10 20:15:56 +08:00
committed by LINxiansheng
parent 7b003df452
commit a8b4d67f55

View File

@ -18941,7 +18941,7 @@ int ObDDLService::drop_outline(const obrpc::ObDropOutlineArg& arg)
if (OB_SUCC(ret)) { if (OB_SUCC(ret)) {
bool database_exist = false; bool database_exist = false;
if (database_name == OB_OUTLINE_DEFAULT_DATABASE_NAME) { if (database_name == OB_OUTLINE_DEFAULT_DATABASE_NAME) {
database_id = OB_OUTLINE_DEFAULT_DATABASE_ID; database_id = combine_id(tenant_id, OB_OUTLINE_DEFAULT_DATABASE_ID);
database_exist = true; database_exist = true;
} else if (OB_FAIL( } else if (OB_FAIL(
schema_service_->check_database_exist(tenant_id, database_name, database_id, database_exist))) { schema_service_->check_database_exist(tenant_id, database_name, database_id, database_exist))) {