Commit 4390619e authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-205: Drop cached items when purging pubsub node

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/pubsub_clustering@13297 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9f6a9408
......@@ -1597,10 +1597,9 @@ public class PubSubPersistenceManager {
// drop cached items for purged node
synchronized(itemCache) {
Iterator<PublishedItem> items = itemCache.values().iterator();
while (items.hasNext()) {
if (leafNode.getNodeID().equals(items.next().getNodeID())) {
items.remove();
for (PublishedItem item : itemCache.values()) {
if (leafNode.getNodeID().equals(item.getNodeID())) {
itemCache.remove(item.getItemKey());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment