tianhui5 commented on code in PR #9264:
URL: https://github.com/apache/incubator-doris/pull/9264#discussion_r865537451


##########
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java:
##########
@@ -597,11 +599,17 @@ private void computePartitionInfo() throws 
AnalysisException {
         }
         selectedPartitionNum = selectedPartitionIds.size();
 
+        String dbName = desc.getRef().getName().getDb();
+        long dbId = 
analyzer.getCatalog().getDb(dbName).map(Database::getId).orElse(0L);
+        long timestamp = System.currentTimeMillis();
+        VisitPartitionsInfo info = new VisitPartitionsInfo(dbId, 
olapTable.getId(), selectedPartitionIds, timestamp);
+        Catalog.getCurrentCatalog().getEditLog().logVisitPartition(info);

Review Comment:
   Since we can't redirect all queries to master, should I transfer all log 
request to master? Is there too many RPCs?



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