handle runtime exception same way as ioexception when we reinitialize index storage with clear (IDEA-152960)

This commit is contained in:
Maxim.Mossienko
2016-05-03 23:20:52 +02:00
parent 0eb5e619ef
commit d1bf2168e2
@@ -203,7 +203,7 @@ public final class MapIndexStorage<Key, Value> implements IndexStorage<Key, Valu
myMap.close();
if (myKeyHashToVirtualFileMapping != null) myKeyHashToVirtualFileMapping.close();
}
catch (IOException e) {
catch (IOException|RuntimeException e) {
LOG.error(e);
}
try {