mreutegg commented on code in PR #920:
URL: https://github.com/apache/jackrabbit-oak/pull/920#discussion_r1205512591


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreStats.java:
##########
@@ -277,12 +277,22 @@ public void doneCreateOrUpdate(long timeTakenNanos, 
Collection<? extends Documen
     public void doneFindAndModify(long timeTakenNanos, Collection<? extends 
Document> collection, String key, boolean newEntry,
                                   boolean success, int retryCount) {
 
-        modifyMetricUpdater.update(collection, retryCount, timeTakenNanos, 
success, newEntry, c -> c == NODES, getStatsConsumer(),
+        modifyMetricUpdater.update(collection, retryCount, timeTakenNanos, 
success, newEntry, of(key), isNodesCollectionUpdated(), getStatsConsumer(),
                 getStatsConsumer(), MeterStats::mark, MeterStats::mark);
 
         perfLog(perfLog, PERF_LOG_THRESHOLD, timeTakenNanos, "findAndModify 
[{}]", key);
     }
 
+    @Override
+    public void doneFindAndModify(long timeTakenNanos, Collection<? extends 
Document> collection, List<String> ids, boolean newEntry,
+                                  boolean success, int retryCount) {
+
+        modifyMetricUpdater.update(collection, retryCount, timeTakenNanos, 
success, newEntry, ids, isNodesCollectionUpdated(), getStatsConsumer(),
+                getStatsConsumer(), MeterStats::mark, MeterStats::mark);
+
+        perfLog(perfLog, PERF_LOG_THRESHOLD, timeTakenNanos, "findAndModify 
[{}]", ids);

Review Comment:
   Remove square brackets? List.toString() usually surrounds elements with 
square brackets already.
   ```suggestion
           perfLog(perfLog, PERF_LOG_THRESHOLD, timeTakenNanos, "findAndModify 
{}", ids);
   ```



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

Reply via email to