Copilot commented on code in PR #61080:
URL: https://github.com/apache/doris/pull/61080#discussion_r2888955750


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/LocalTabletInvertedIndex.java:
##########
@@ -1033,7 +1050,13 @@ public Table<Long, Long, Replica> getReplicaMetaTable() {
     public Table<Long, Long, Replica> getBackingReplicaMetaTable() {
         long stamp = readLock();
         try {
-            return HashBasedTable.create(backingReplicaMetaTable);
+            Table<Long, Long, Replica> table = HashBasedTable.create();
+            backingReplicaMetaTable.entrySet().stream().forEach(backendEntry 
-> {
+                
backendEntry.getValue().entrySet().stream().forEach(replicaEntry -> {

Review Comment:
   Minor: `.entrySet().stream().forEach(...)` can be simplified to 
`.entrySet().forEach(...)` (no need for the intermediate stream). This applies 
to both the outer and inner loops.
   ```suggestion
               backingReplicaMetaTable.entrySet().forEach(backendEntry -> {
                   backendEntry.getValue().entrySet().forEach(replicaEntry -> {
   ```



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