mirror of https://github.com/apache/cassandra
synchronize LCS getEstimatedTasks to avoid CME
patch by jbellis; reviewed by slebresne for CASSANDRA-4255
This commit is contained in:
parent
48438ffc61
commit
641b021d3c
|
|
@ -1,6 +1,8 @@
|
||||||
1.0.11
|
1.0.11
|
||||||
|
* synchronize LCS getEstimatedTasks to avoid CME (CASSANDRA-4255)
|
||||||
* ensure unique streaming session id's (CASSANDRA-4223)
|
* ensure unique streaming session id's (CASSANDRA-4223)
|
||||||
|
|
||||||
|
|
||||||
1.0.10
|
1.0.10
|
||||||
* fix maxTimestamp to include row tombstones (CASSANDRA-4116)
|
* fix maxTimestamp to include row tombstones (CASSANDRA-4116)
|
||||||
* avoid streaming empty files with bulk loader if sstablewriter errors out
|
* avoid streaming empty files with bulk loader if sstablewriter errors out
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,7 @@ public class LeveledManifest
|
||||||
return generations[i];
|
return generations[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEstimatedTasks()
|
public synchronized int getEstimatedTasks()
|
||||||
{
|
{
|
||||||
long tasks = 0;
|
long tasks = 0;
|
||||||
for (int i = generations.length - 1; i >= 0; i--)
|
for (int i = generations.length - 1; i >= 0; i--)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue