nextdreamblue commented on code in PR #13067: URL: https://github.com/apache/doris/pull/13067#discussion_r996407945
########## fe/fe-core/src/main/java/org/apache/doris/catalog/CatalogRecycleBin.java: ########## @@ -76,46 +81,56 @@ public synchronized boolean recycleDatabase(Database db, Set<String> tableNames) // db should be empty. all tables are recycled before Preconditions.checkState(db.getTables().isEmpty()); - // erase db with same name - eraseDatabaseWithSameName(db.getFullName()); + // erase db with same id + eraseDatabaseWithSameId(db.getId()); // recycle db - RecycleDatabaseInfo databaseInfo = new RecycleDatabaseInfo(db, tableNames); + RecycleDatabaseInfo databaseInfo = new RecycleDatabaseInfo(db, tableNames, tableIds); Review Comment: 嗯,后续所有判断都只通过tableIds来做,我优化一下这块逻辑 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org