mymeiyi commented on code in PR #55062:
URL: https://github.com/apache/doris/pull/55062#discussion_r2430956466
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -7204,6 +7205,42 @@ public void compactTable(String dbName, String
tableName, String type, List<Stri
AgentTaskExecutor.submit(batchTask);
}
+ // sync table
+ public void syncTable(String dbName, String tableName) throws
DdlException, AnalysisException {
+ Database db = getInternalCatalog().getDbOrDdlException(dbName);
+ Table table = db.getTableOrDdlException(tableName);
+ long dbId = db.getId();
+ long tableId = table.getId();
+ GlobalTransactionMgrIface txnMgr =
Env.getCurrentGlobalTransactionMgr();
+ // get table transaction ids
+ Map<Long, List<Long>> txnIdToTableIds =
txnMgr.getDbRunningTransInfo(dbId);
Review Comment:
in local mode, if execute the sql in follower fe, the
`getDbRunningTransInfo` is also empty?
--
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]