synchronize LCS getEstimatedTasks to avoid CME

patch by jbellis; reviewed by slebresne for CASSANDRA-4255
This commit is contained in:
Jonathan Ellis 2012-05-21 11:49:20 -05:00
parent 48438ffc61
commit 641b021d3c
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
1.0.11
* synchronize LCS getEstimatedTasks to avoid CME (CASSANDRA-4255)
* ensure unique streaming session id's (CASSANDRA-4223)
1.0.10
* fix maxTimestamp to include row tombstones (CASSANDRA-4116)
* avoid streaming empty files with bulk loader if sstablewriter errors out

View File

@ -445,7 +445,7 @@ public class LeveledManifest
return generations[i];
}
public int getEstimatedTasks()
public synchronized int getEstimatedTasks()
{
long tasks = 0;
for (int i = generations.length - 1; i >= 0; i--)