mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.1' into trunk
This commit is contained in:
commit
8215744ffb
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
|
||||
2.1.1
|
||||
* cassandra-stress: fix support for NetworkTopologyStrategy (CASSANDRA-7945)
|
||||
* Fix saving caches when a table is dropped (CASSANDRA-7784)
|
||||
* Add better error checking of new stress profile (CASSANDRA-7716)
|
||||
* Use ThreadLocalRandom and remove FBUtilities.threadLocalRandom (CASSANDRA-7934)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ class OptionReplication extends OptionMulti
|
|||
public Map<String, String> getOptions()
|
||||
{
|
||||
Map<String, String> options = extraOptions();
|
||||
options.put("replication_factor", factor.value());
|
||||
if (!options.containsKey("replication_factor") && (strategy.value().equals("org.apache.cassandra.locator.SimpleStrategy") || factor.setByUser()))
|
||||
options.put("replication_factor", factor.value());
|
||||
return options;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue