зеркало из https://github.com/Azure/YCSB.git
Merge pull request #207 from benjaminbrent/bugfix-missing-synchronized-keyword-in-measurements
Synchronize Measurements.getSummary() method to prevent ConcurrentModificationExceptions
This commit is contained in:
Коммит
99c38369c6
|
@ -154,7 +154,7 @@ public class Measurements
|
|||
/**
|
||||
* Return a one line summary of the measurements.
|
||||
*/
|
||||
public String getSummary()
|
||||
public synchronized String getSummary()
|
||||
{
|
||||
String ret="";
|
||||
for (OneMeasurement m : data.values())
|
||||
|
|
Загрузка…
Ссылка в новой задаче