From 31b92f02179437fcec6b3914691fb05ecba42ca9 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Fri, 31 Oct 2014 22:32:35 +0000 Subject: [PATCH] Actually persist a changed console set agent-limit via "region set". Unfortunately, it's not currently easy to do this with "max-agent-limit" - this must be separately set as MaxAgents in region config if it's to persist over restarts. --- .../CoreModules/World/Region/RegionCommandsModule.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs index b0caaf9377..710c8dab00 100644 --- a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs +++ b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs @@ -103,8 +103,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands "region get", "Set control information for the currently selected region.", "Currently, the following parameters can be set:\n" - + "agent-limit - Current root agent limit.\n" - + "max-agent-limit - Maximum root agent limit. agent-limit cannot exceed this.", + + "agent-limit - Current root agent limit. This is persisted over restart.\n" + + "max-agent-limit - Maximum root agent limit. agent-limit cannot exceed this." + + " This is not persisted over restart - to set it every time you must add a MaxAgents entry to your regions file.", HandleRegionSet); } @@ -224,6 +225,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands MainConsole.Instance.OutputFormat( "{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name); } + + rs.Save(); } else if (param == "max-agent-limit") { @@ -244,6 +247,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands MainConsole.Instance.OutputFormat( "Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name); } + + rs.Save(); } }