mirror of https://github.com/apache/cassandra
Handle empty CFs in Memtable#maybeUpdateLiveRatio()
patch by Christian Spriegel; reviewed by Aleksey Yeschenko for CASSANDRA-7401
This commit is contained in:
parent
7801aab8c0
commit
9afc2097ef
|
|
@ -1,4 +1,5 @@
|
|||
2.0.9
|
||||
* Handle empty CFs in Memtable#maybeUpdateLiveRatio() (CASSANDRA-7401)
|
||||
* Fix native protocol CAS batches (CASSANDRA-7337)
|
||||
* Add per-CF range read request latency metrics (CASSANDRA-7338)
|
||||
* Fix NPE in StreamTransferTask.createMessageForRetry() (CASSANDRA-7323)
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ public class Memtable
|
|||
{
|
||||
long last = liveRatioComputedAt.get();
|
||||
long operations = currentOperations.get();
|
||||
if (operations < 2 * last)
|
||||
if (operations <= 2L * last)
|
||||
break;
|
||||
if (liveRatioComputedAt.compareAndSet(last, operations))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue