Ensure profile results are immutable after serialization
This commit is contained in:
parent
10dfa32f9d
commit
41139c6b15
|
@ -62,8 +62,9 @@ public final class InternalProfileShardResults implements Writeable<InternalProf
|
|||
ProfileShardResult result = new ProfileShardResult(in);
|
||||
shardResult.add(result);
|
||||
}
|
||||
shardResults.put(key, shardResult);
|
||||
shardResults.put(key, Collections.unmodifiableList(shardResult));
|
||||
}
|
||||
shardResults = Collections.unmodifiableMap(shardResults);
|
||||
}
|
||||
|
||||
public Map<String, List<ProfileShardResult>> getShardResults() {
|
||||
|
|
Loading…
Reference in New Issue