maksaska commented on code in PR #11793:
URL: https://github.com/apache/ignite/pull/11793#discussion_r1912440919


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -2871,8 +2883,9 @@ protected IgniteInternalFuture<Boolean> 
removeAsync0(final K key, @Nullable fina
             return new GridFinishedFuture<Object>();
 
         final boolean statsEnabled = ctx.statisticsEnabled();
+        boolean performanceStatsEnabled = 
ctx.kernalContext().performanceStatistics().enabled();

Review Comment:
   Agree. Fixed it



##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -2001,8 +2005,9 @@ protected boolean put0(final K key, final V val, final 
CacheEntryPredicate filte
             return new GridFinishedFuture<Object>();
 
         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:
   Agree. Fixed it



##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -2871,8 +2883,9 @@ protected IgniteInternalFuture<Boolean> 
removeAsync0(final K key, @Nullable fina
             return new GridFinishedFuture<Object>();
 
         final boolean statsEnabled = ctx.statisticsEnabled();
+        boolean performanceStatsEnabled = 
ctx.kernalContext().performanceStatistics().enabled();
 
-        final long start = statsEnabled ? System.nanoTime() : 0L;
+        final long start = statsEnabled || performanceStatsEnabled ? 
System.nanoTime() : 0L;

Review Comment:
   Agree. Fixed it



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to