caiconghui commented on code in PR #15830:
URL: https://github.com/apache/doris/pull/15830#discussion_r1098195999


##########
fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java:
##########
@@ -1532,9 +1530,10 @@ protected void 
checkRunningTxnExceedLimit(TransactionState.LoadJobSourceType sou
                 //    load, and other txn may not be able to submitted.
                 break;
             default:
-                if (runningTxnNums >= Config.max_running_txn_num_per_db) {
+                long txnQuota = 
env.getInternalCatalog().getDbOrMetaException(dbId).getTransactionQuotaSize();

Review Comment:
   Database db = Env.getCurrentInternalCatalog().getDbOrAnalysisException(dbId);
   long transactionQuotaSize = db.getTransactionQuotaSize();



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