ccoffline commented on a change in pull request #6416:
URL: https://github.com/apache/incubator-doris/pull/6416#discussion_r699064566



##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java
##########
@@ -6341,12 +6264,12 @@ public long loadCluster(DataInputStream dis, long 
checksum) throws IOException,
                 // for adding BE to some Cluster, but loadCluster is after 
loadBackend.
                 cluster.setBackendIdList(latestBackendIds);
 
-                String dbName =  
InfoSchemaDb.getFullInfoSchemaDbName(cluster.getName());
+                String dbName = 
InfoSchemaDb.getFullInfoSchemaDbName(cluster.getName());
                 InfoSchemaDb db;
                 // Use real Catalog instance to avoid InfoSchemaDb id 
continuously increment
                 // when checkpoint thread load image.
-                if 
(Catalog.getServingCatalog().getFullNameToDb().containsKey(dbName)) {
-                    db = 
(InfoSchemaDb)Catalog.getServingCatalog().getFullNameToDb().get(dbName);
+                if 
(Catalog.getCurrentCatalog().getFullNameToDb().containsKey(dbName)) {

Review comment:
       It is a mischange, I'll fix this




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to