cache: Do not depend on Index insertion ordering

This commit is contained in:
Max Weber
2018-08-08 22:15:35 -06:00
parent 0e55362b81
commit 4ab21e1fd3

View File

@@ -133,7 +133,7 @@ public final class Store implements Closeable
public Index getIndex(IndexType type)
{
return indexes.get(type.getNumber());
return findIndex(type.getNumber());
}
public Index findIndex(int id)