Skip to content

Commit

Permalink
Merge branch 'cassandra-2.1' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Dec 22, 2014
2 parents bf599fb + 29ff2d2 commit 977cbdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@


2.1.3
* Stress - user defined writes should populate sequentally (CASSANDRA-8524)
* Fix regression in SSTableRewriter causing some rows to become unreadable
during compaction (CASSANDRA-8429)
* Run major compactions for repaired/unrepaired in parallel (CASSANDRA-8510)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public SettingsCommandUser(Options options)
throw new IllegalArgumentException("Must specify at least one command with a non-zero ratio");
}

public boolean hasInsertOnly()
{
return ratios.size() == 1 && ratios.containsKey("insert");
}

public OpDistributionFactory getFactory(final StressSettings settings)
{
final SeedManager seeds = new SeedManager(settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ public static SettingsPopulation get(Map<String, String[]> clArgs, SettingsComma
String[] params = clArgs.remove("-pop");
if (params == null)
{
if (command instanceof SettingsCommandUser && ((SettingsCommandUser)command).hasInsertOnly())
{
return new SettingsPopulation(new SequentialOptions(defaultLimit));
}

// return defaults:
switch(command.type)
{
Expand Down

0 comments on commit 977cbdd

Please sign in to comment.