diff options
author | Justin Clark-Casey (justincc) | 2012-05-19 03:17:21 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-19 03:17:21 +0100 |
commit | 3f2a727b6d6b0cf6c2e2c7ef11ebd0f3f1fefa83 (patch) | |
tree | 93da9fb560913a6d9d7a0288293d607d68461fff /OpenSim/Region | |
parent | Add some method doc to RegionCombinerModule. Clean up log messages. (diff) | |
download | opensim-SC-3f2a727b6d6b0cf6c2e2c7ef11ebd0f3f1fefa83.zip opensim-SC-3f2a727b6d6b0cf6c2e2c7ef11ebd0f3f1fefa83.tar.gz opensim-SC-3f2a727b6d6b0cf6c2e2c7ef11ebd0f3f1fefa83.tar.bz2 opensim-SC-3f2a727b6d6b0cf6c2e2c7ef11ebd0f3f1fefa83.tar.xz |
Remove recent IRegionCombinerModule.IsMegaregion(). In theory, there can be more than one megaregion in a simulator, separated by water.
Rename IsRootRegion() to IsRootForMegaregion()
Diffstat (limited to 'OpenSim/Region')
3 files changed, 5 insertions, 20 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs index 838b741..e54774b 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs | |||
@@ -401,7 +401,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
401 | if (m_module != null && m_module.RegionCombinerModule != null) | 401 | if (m_module != null && m_module.RegionCombinerModule != null) |
402 | { | 402 | { |
403 | IRegionCombinerModule mod = m_module.RegionCombinerModule; | 403 | IRegionCombinerModule mod = m_module.RegionCombinerModule; |
404 | isMegaregion = mod.IsMegaregion && mod.IsRootRegion(m_scene.RegionInfo.RegionID); | 404 | isMegaregion = mod.IsRootForMegaregion(m_scene.RegionInfo.RegionID); |
405 | } | 405 | } |
406 | else | 406 | else |
407 | { | 407 | { |
diff --git a/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs b/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs index 30e49b1..ca4ed5c 100644 --- a/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs | |||
@@ -38,14 +38,8 @@ namespace OpenSim.Region.Framework.Interfaces | |||
38 | public interface IRegionCombinerModule | 38 | public interface IRegionCombinerModule |
39 | { | 39 | { |
40 | /// <summary> | 40 | /// <summary> |
41 | /// Is this simulator hosting a megaregion? | 41 | /// Does the given id belong to the root region of a megaregion? |
42 | /// </summary> | 42 | /// </summary> |
43 | /// <value></value> | 43 | bool IsRootForMegaregion(UUID sceneId); |
44 | bool IsMegaregion { get; } | ||
45 | |||
46 | /// <summary> | ||
47 | /// Does the given id belong to the root region of the megaregion? | ||
48 | /// </summary> | ||
49 | bool IsRootRegion(UUID sceneId); | ||
50 | } | 44 | } |
51 | } \ No newline at end of file | 45 | } \ No newline at end of file |
diff --git a/OpenSim/Region/RegionCombinerModule/RegionCombinerModule.cs b/OpenSim/Region/RegionCombinerModule/RegionCombinerModule.cs index 3af5cc2..fadc30d 100644 --- a/OpenSim/Region/RegionCombinerModule/RegionCombinerModule.cs +++ b/OpenSim/Region/RegionCombinerModule/RegionCombinerModule.cs | |||
@@ -58,20 +58,11 @@ namespace OpenSim.Region.RegionCombinerModule | |||
58 | get { return null; } | 58 | get { return null; } |
59 | } | 59 | } |
60 | 60 | ||
61 | public bool IsMegaregion | ||
62 | { | ||
63 | get | ||
64 | { | ||
65 | lock (m_startingScenes) | ||
66 | return m_startingScenes.Count > 1; | ||
67 | } | ||
68 | } | ||
69 | |||
70 | /// <summary> | 61 | /// <summary> |
71 | /// This holds the root regions for the megaregions. | 62 | /// This holds the root regions for the megaregions. |
72 | /// </summary> | 63 | /// </summary> |
73 | /// <remarks> | 64 | /// <remarks> |
74 | /// At this point we can actually assume there is only ever one megaregion (and hence only one entry here). | 65 | /// Usually there is only ever one megaregion (and hence only one entry here). |
75 | /// </remarks> | 66 | /// </remarks> |
76 | private Dictionary<UUID, RegionConnections> m_regions = new Dictionary<UUID, RegionConnections>(); | 67 | private Dictionary<UUID, RegionConnections> m_regions = new Dictionary<UUID, RegionConnections>(); |
77 | 68 | ||
@@ -122,7 +113,7 @@ namespace OpenSim.Region.RegionCombinerModule | |||
122 | } | 113 | } |
123 | } | 114 | } |
124 | 115 | ||
125 | public bool IsRootRegion(UUID sceneId) | 116 | public bool IsRootForMegaregion(UUID sceneId) |
126 | { | 117 | { |
127 | lock (m_regions) | 118 | lock (m_regions) |
128 | return m_regions.ContainsKey(sceneId); | 119 | return m_regions.ContainsKey(sceneId); |