Copy compaction options to make sure they are reloaded.

Patch by pauloricardomg; reviewed by marcuse for CASSANDRA-7290
This commit is contained in:
Marcus Eriksson 2014-05-27 10:24:48 +02:00
parent ea5b6246d2
commit 9376fddccf
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* Add missing iso8601 patterns for date strings (6973)
* Support selecting multiple rows in a partition using IN (CASSANDRA-6875)
* cqlsh: always emphasize the partition key in DESC output (CASSANDRA-7274)
* Copy compaction options to make sure they are reloaded (CASSANDRA-7290)
2.0.8
* Always reallocate buffers in HSHA (CASSANDRA-6285)

View File

@ -20,6 +20,7 @@ package org.apache.cassandra.db.compaction;
import java.util.*;
import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.util.concurrent.RateLimiter;
import org.slf4j.Logger;
@ -76,7 +77,7 @@ public abstract class AbstractCompactionStrategy
{
assert cfs != null;
this.cfs = cfs;
this.options = options;
this.options = ImmutableMap.copyOf(options);
/* checks must be repeated here, as user supplied strategies might not call validateOptions directly */