Commit 27694d60 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-205: Added cluster task to keep node affiliations in sync

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13358 b35dd754-fafc-0310-a699-88a17e54d16e
parent a51f0957
......@@ -32,6 +32,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
import org.dom4j.Element;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.openfire.cluster.ClusterManager;
import org.jivesoftware.openfire.pubsub.cluster.AffiliationTask;
import org.jivesoftware.openfire.pubsub.cluster.CancelSubscriptionTask;
import org.jivesoftware.openfire.pubsub.cluster.ModifySubscriptionTask;
import org.jivesoftware.openfire.pubsub.cluster.NewSubscriptionTask;
......@@ -364,6 +365,10 @@ public abstract class Node {
// Add or update the affiliate in the database
PubSubPersistenceManager.saveAffiliation(this, affiliate, created);
}
// Update the other members with the new affiliation
CacheFactory.doClusterTask(new AffiliationTask(this, jid, affiliation));
return affiliate;
}
......
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