aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
diff options
context:
space:
mode:
authorJeff Ames2008-03-04 10:12:39 +0000
committerJeff Ames2008-03-04 10:12:39 +0000
commitd2806090aef48cff16d1ba2ae88ab0775f6a0489 (patch)
tree6e3115f4896a9edc4b7c68e18ebf15e44a527aba /ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
parentFixed a region split synchronization bug (diff)
downloadopensim-SC-d2806090aef48cff16d1ba2ae88ab0775f6a0489.zip
opensim-SC-d2806090aef48cff16d1ba2ae88ab0775f6a0489.tar.gz
opensim-SC-d2806090aef48cff16d1ba2ae88ab0775f6a0489.tar.bz2
opensim-SC-d2806090aef48cff16d1ba2ae88ab0775f6a0489.tar.xz
Cleaned up a couple compiler warnings.
Diffstat (limited to 'ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs')
-rw-r--r--ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
index 267fe3c..981d96a 100644
--- a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
+++ b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
@@ -738,11 +738,11 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
738 IClientAPI controller = null; 738 IClientAPI controller = null;
739 739
740 foreach (uint code in circuits) 740 foreach (uint code in circuits)
741 { 741 {
742 m_log.InfoFormat("[BALANCER] "+"circuit code : {0}", code); 742 m_log.InfoFormat("[BALANCER] "+"circuit code : {0}", code);
743 743
744 if (scene.ClientManager.TryGetClient(code, out controller)) 744 if (scene.ClientManager.TryGetClient(code, out controller))
745 { 745 {
746 // Divide the presences evenly over the set of subscenes 746 // Divide the presences evenly over the set of subscenes
747 ClientView client = (ClientView) controller; 747 ClientView client = (ClientView) controller;
748 client.PacketProcessingEnabled = (( (i + myID) % sceneURL.Length) == 0); 748 client.PacketProcessingEnabled = (( (i + myID) % sceneURL.Length) == 0);
@@ -750,15 +750,15 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
750 m_log.InfoFormat("[SPLITSCENE] === SplitRegion {0}: SP.PacketEnabled {1}", region.RegionID, client.PacketProcessingEnabled); 750 m_log.InfoFormat("[SPLITSCENE] === SplitRegion {0}: SP.PacketEnabled {1}", region.RegionID, client.PacketProcessingEnabled);
751 751
752 if (!client.PacketProcessingEnabled) 752 if (!client.PacketProcessingEnabled)
753 { 753 {
754 // stopping clientview thread 754 // stopping clientview thread
755 client.Stop(); 755 client.Stop();
756 } 756 }
757
758 ++i;
759 }
760 }
757 761
758 ++i;
759 }
760 }
761
762 scene.splitID = myID; 762 scene.splitID = myID;
763 scene.SynchronizeScene = new Scene.SynchronizeSceneHandler(SynchronizeScenes); 763 scene.SynchronizeScene = new Scene.SynchronizeSceneHandler(SynchronizeScenes);
764 isSplit = true; 764 isSplit = true;