Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ignore] Leave just one public invalidate method for clearing collect…

…ion configs.
  • Loading branch information...
commit 7d96a73fffd600870d3221dedddb1152d5a3ce59 1 parent d603d2b
@wolfgangmm wolfgangmm authored
View
4 src/org/exist/collections/CollectionCache.java
@@ -89,7 +89,7 @@ protected void removeOne(Cacheable item) {
try {
if (cached.allowUnload()) {
if(pool.getConfigurationManager()!=null) { // might be null during db initialization
- pool.getConfigurationManager().invalidate(old.getURI());
+ pool.getConfigurationManager().invalidate(old.getURI(), null);
}
names.remove(old.getURI().getRawCollectionPath());
cached.sync(true);
@@ -116,7 +116,7 @@ public void remove(Cacheable item) {
super.remove(item);
names.remove(col.getURI().getRawCollectionPath());
if(pool.getConfigurationManager() != null) // might be null during db initialization
- {pool.getConfigurationManager().invalidate(col.getURI());}
+ {pool.getConfigurationManager().invalidate(col.getURI(), null);}
}
/**
View
5 src/org/exist/collections/CollectionConfigurationManager.java
@@ -389,11 +389,8 @@ public Void call() {
* This will delete the cached configuration instance for this collection.
*
* @param collectionPath
+ * @param pool if not null: clear query cache
*/
- public void invalidate(final XmldbURI collectionPath) {
- invalidate(collectionPath, null);
- }
-
public void invalidate(final XmldbURI collectionPath, final BrokerPool pool) {
if (!collectionPath.startsWith(CONFIG_COLLECTION_URI)) {
return;

0 comments on commit 7d96a73

Please sign in to comment.
Something went wrong with that request. Please try again.