Cache is cleared if cache state can not be restored. - reverted
@@ -738,13 +738,8 @@ public class O2QCache implements OReadCache {
}
}
} catch (Exception e) {
- OLogManager.instance().warn(this, "Cannot restore state of cache for storage placed under " + writeCache.getRootDirectory()
- + ", whole cache will be cleared", e);
-
- am.clear();
- a1in.clear();
- a1out.clear();
-
+ throw OException.wrapException(
+ new OStorageException("Cannot restore state of cache for storage placed under " + writeCache.getRootDirectory()), e);
} finally {
cacheLock.releaseWriteLock();
}
