Skip to content

Commit

Permalink
Fix #1885 by making the overall stats a concurrent map. Doh.
Browse files Browse the repository at this point in the history
  • Loading branch information
manolama committed Jul 27, 2021
1 parent cf5999d commit ab65605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stats/QueryStats.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public QueryStats(final String remote_address, final TSQuery query,
executed = 1;
query_start_ns = DateTime.nanoTime();
query_start_ms = DateTime.currentTimeMillis();
overall_stats = new HashMap<QueryStat, Long>();
overall_stats = new ConcurrentHashMap<QueryStat, Long>();
query_stats = new ConcurrentHashMap<Integer, Map<QueryStat, Long>>(1);
scanner_stats = new ConcurrentHashMap<Integer,
Map<Integer, Map<QueryStat, Long>>>(1);
Expand Down

0 comments on commit ab65605

Please sign in to comment.