Skip to content

Commit

Permalink
Use copy-on-write map
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaYtterbrink committed Mar 19, 2018
1 parent 9821015 commit 0aed995
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -20,10 +20,10 @@
package org.neo4j.kernel.impl.index.schema;

import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.Map;
import java.util.function.Function;

import org.neo4j.kernel.impl.util.CopyOnWriteHashMap;
import org.neo4j.values.storable.CoordinateReferenceSystem;

/**
Expand All @@ -42,7 +42,7 @@ class SpatialIndexCache<T, E extends Exception> implements Iterable<T>

private final Factory<T, E> factory;

private ConcurrentMap<CoordinateReferenceSystem,T> spatials = new ConcurrentHashMap<>();
private Map<CoordinateReferenceSystem,T> spatials = new CopyOnWriteHashMap<>();

SpatialIndexCache( Factory<T, E> factory )
{
Expand Down

0 comments on commit 0aed995

Please sign in to comment.