caiconghui commented on code in PR #15830:
URL: https://github.com/apache/doris/pull/15830#discussion_r1098195000
##########
fe/fe-core/src/main/java/org/apache/doris/load/sync/canal/CanalSyncChannel.java:
##########
@@ -124,7 +124,9 @@ public void beginTxn(long batchId) throws UserException,
TException, TimeoutExce
String targetColumn = Joiner.on(",").join(columns) + "," +
DELETE_COLUMN;
GlobalTransactionMgr globalTransactionMgr =
Env.getCurrentGlobalTransactionMgr();
DatabaseTransactionMgr databaseTransactionMgr =
globalTransactionMgr.getDatabaseTransactionMgr(db.getId());
- if (databaseTransactionMgr.getRunningTxnNums() <
Config.max_running_txn_num_per_db) {
+ long txnLimit = (Config.default_db_max_running_txn_num == -1L)
Review Comment:
```suggestion
long txnLimit = (Config.default_db_max_running_txn_num == -1L)
```
```suggestion
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]