oleg-vlsk commented on code in PR #11793:
URL: https://github.com/apache/ignite/pull/11793#discussion_r1912377566


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -1975,8 +1975,9 @@ protected boolean put0(final K key, final V val, final 
CacheEntryPredicate filte
             return;
 
         final boolean statsEnabled = ctx.statisticsEnabled();
+        boolean performanceStatsEnabled = 
ctx.kernalContext().performanceStatistics().enabled();
 
-        long start = statsEnabled ? System.nanoTime() : 0L;
+        long start = statsEnabled || performanceStatsEnabled ? 
System.nanoTime() : 0L;

Review Comment:
   final?
   braces for better readability for `statsEnabled || performanceStatsEnabled`?



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