caiconghui commented on code in PR #15830:
URL: https://github.com/apache/doris/pull/15830#discussion_r1098196704
##########
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();
+ if (txnQuota != -1L && runningTxnNums >= txnQuota) {
Review Comment:
```suggestion
if (runningTxnNums >= txnQuota) {
```
--
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]