Remove security cache updates on delete
no need for that, the cost of cache refresh is much higher that stale cache entries
(removed rules will still trigger an update on ORole, so the cache will be updated anyway;
removed users/roles won't be able to access anyway)
also fixes import from pre-3.1
@@ -1029,9 +1029,6 @@ public class ODatabaseDocumentEmbedded extends ODatabaseDocumentAbstract impleme
this.getSharedContext().getFunctionLibrary().droppedFunction(doc);
sharedContext.getOrientDB().getScriptManager().close(this.getName());
}
- if (clazz.isOuser() || clazz.isOrole() || clazz.isSubClassOf(OSecurityPolicy.class.getSimpleName())) {
- sharedContext.getSecurity().incrementVersion(this);
- }
if (clazz.isSequence()) {
((OSequenceLibraryProxy) getMetadata().getSequenceLibrary()).getDelegate().onSequenceDropped(this, doc);
}
