smiklosovic commented on code in PR #3644:
URL: https://github.com/apache/cassandra/pull/3644#discussion_r1823328283


##########
src/java/org/apache/cassandra/cache/InstrumentingCache.java:
##########
@@ -84,6 +86,11 @@ public void setCapacity(long capacity)
         map.setCapacity(capacity);
     }
 
+    public boolean enabled()
+    {
+        return enabled;

Review Comment:
   if we call "setCapacity" from CacheService as shown in other PR, then this 
should be "return map.capacity() > 0" to dynamically reflect if cache is 
enabled or not.



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