Skip to content

Commit

Permalink
Merge pull request #118 from shabanovd/develop
Browse files Browse the repository at this point in the history
I reviewed and tested Dmitriy's proposed changes locally and could not find any unexpected side effects. Concurrency issues are hard to test, so a small risk remains. The previous synchronized effectively locked the entire db though.
  • Loading branch information
wolfgangmm committed Jan 18, 2014
2 parents 8dc2e16 + 42dd536 commit 0fd2f63
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 218 deletions.
6 changes: 4 additions & 2 deletions src/org/exist/collections/Collection.java
Expand Up @@ -1091,7 +1091,9 @@ public void removeXMLResource(final Txn transaction, final DBBroker broker, fina
// reload the configuration.
useTriggers = false;
final CollectionConfigurationManager confMgr = broker.getBrokerPool().getConfigurationManager();
confMgr.invalidateAll(getURI());
if (confMgr != null) {
confMgr.invalidate(getURI());
}
}

DocumentTriggersVisitor triggersVisitor = null;
Expand Down Expand Up @@ -1415,7 +1417,7 @@ private void storeXMLInternal(final Txn transaction, final DBBroker broker, fina
final CollectionConfigurationManager manager = broker.getBrokerPool().getConfigurationManager();
if(manager != null) {
try {
manager.invalidateAll(getURI());
manager.invalidate(getURI());
manager.loadConfiguration(broker, this);
} catch(final PermissionDeniedException pde) {
throw new EXistException(pde.getMessage(), pde);
Expand Down

0 comments on commit 0fd2f63

Please sign in to comment.