Fix accounting in FileCacheService to allow re-using RAR

Patch by Benedict Elliott Smith; reviewed by jbellis for CASSANDRA-6838
This commit is contained in:
Jonathan Ellis 2014-03-11 23:18:54 -05:00
parent fc9cad90d5
commit 31cbdfd7ba
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
2.0.7
* Fix saving triggers to schema (CASSANDRA-6789)
* Fix trigger mutations when base mutation list is immutable (CASSANDRA-6790)
* Fix accounting in FileCacheService to allow re-using RAR (CASSANDRA-6838)
2.0.6

View File

@ -91,7 +91,10 @@ public class FileCacheService
Queue<RandomAccessReader> instances = getCacheFor(path);
RandomAccessReader result = instances.poll();
if (result != null)
{
metrics.hits.mark();
memoryUsage.addAndGet(-result.getTotalBufferSize());
}
return result;
}