mirror of https://github.com/apache/cassandra
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:
parent
fc9cad90d5
commit
31cbdfd7ba
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue