Yulei-Yang commented on code in PR #37828:
URL: https://github.com/apache/doris/pull/37828#discussion_r1677707341


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -5381,11 +5381,11 @@ public void changeCatalog(ConnectContext ctx, String 
catalogName) throws DdlExce
         if (StringUtils.isNotEmpty(currentDB)) {
             // When dropped the current catalog in current context, the 
current catalog will be null.
             if (ctx.getCurrentCatalog() != null) {
-                
catalogMgr.addLastDBOfCatalog(ctx.getCurrentCatalog().getName(), currentDB);
+                
ConnectContext.get().addLastDBOfCatalog(ctx.getCurrentCatalog().getName(), 
currentDB);

Review Comment:
   done



##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -5381,11 +5381,11 @@ public void changeCatalog(ConnectContext ctx, String 
catalogName) throws DdlExce
         if (StringUtils.isNotEmpty(currentDB)) {
             // When dropped the current catalog in current context, the 
current catalog will be null.
             if (ctx.getCurrentCatalog() != null) {
-                
catalogMgr.addLastDBOfCatalog(ctx.getCurrentCatalog().getName(), currentDB);
+                
ConnectContext.get().addLastDBOfCatalog(ctx.getCurrentCatalog().getName(), 
currentDB);
             }
         }
         ctx.changeDefaultCatalog(catalogName);
-        String lastDb = catalogMgr.getLastDB(catalogName);
+        String lastDb = ConnectContext.get().getLastDBOfCatalog(catalogName);

Review Comment:
   done



-- 
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

Reply via email to