Skip to content

Commit

Permalink
Fix a possible concurrent modification exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 25, 2010
1 parent 38c24a5 commit 7d63dda
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,6 +1,7 @@
package org.jumpmind.symmetric.route;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

Expand Down Expand Up @@ -78,7 +79,7 @@ public long getStat(String name) {

public void logStats(ILog log, int dataCount, long totalTimeInMs) {
boolean infoLevel = totalTimeInMs > 30000;
Set<String> keys = contextCache.keySet();
Set<String> keys = new HashSet<String>(contextCache.keySet());
for (String key : keys) {
if (key.startsWith("Stat.")) {
String keyString = key.substring(key.indexOf(".") + 1);
Expand Down

0 comments on commit 7d63dda

Please sign in to comment.