Skip to content

Commit

Permalink
Only check KeyCache when it is enabled
Browse files Browse the repository at this point in the history
patch by Chris Burroughs; reviewed by Robert Stupp for CASSANDRA-9872
  • Loading branch information
Chris Burroughs authored and snazy committed Aug 31, 2015
1 parent 264cf36 commit 8a8a5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
@@ -1,4 +1,5 @@
2.1.10
* Only check KeyCache when it is enabled
* Change streaming_socket_timeout_in_ms default to 1 hour (CASSANDRA-8611)
* (cqlsh) update list of CQL keywords (CASSANDRA-9232)

Expand Down
Expand Up @@ -1539,7 +1539,7 @@ public RowIndexEntry getCachedPosition(DecoratedKey key, boolean updateStats)

private RowIndexEntry getCachedPosition(KeyCacheKey unifiedKey, boolean updateStats)
{
if (keyCache != null && keyCache.getCapacity() > 0) {
if (keyCache != null && keyCache.getCapacity() > 0 && metadata.getCaching().keyCache.isEnabled()) {
if (updateStats)
{
RowIndexEntry cachedEntry = keyCache.get(unifiedKey);
Expand Down

0 comments on commit 8a8a5a4

Please sign in to comment.