diff options
author | Melanie | 2010-09-14 22:47:45 +0100 |
---|---|---|
committer | Melanie | 2010-09-14 22:47:45 +0100 |
commit | 585e575d23ebfd8c4657dbe63cd5b5d3b2b890fd (patch) | |
tree | 4be6e30fe758b519baf74e86a9ec58cdd91c0549 /OpenSim/Services/Connectors/Simulation/SimulationDataService.cs | |
parent | Remove long unused Region/Framework/ThreadTracker (diff) | |
download | opensim-SC_OLD-585e575d23ebfd8c4657dbe63cd5b5d3b2b890fd.zip opensim-SC_OLD-585e575d23ebfd8c4657dbe63cd5b5d3b2b890fd.tar.gz opensim-SC_OLD-585e575d23ebfd8c4657dbe63cd5b5d3b2b890fd.tar.bz2 opensim-SC_OLD-585e575d23ebfd8c4657dbe63cd5b5d3b2b890fd.tar.xz |
Allow to place the connection strings and providers for estate and region
in their oqn sections, for those of us who don't want a catch-all
DatabaseService section.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationDataService.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs b/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs index 946f7e4..c8ecb18 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs | |||
@@ -63,6 +63,14 @@ namespace OpenSim.Services.Connectors | |||
63 | connString = dbConfig.GetString("ConnectionString", String.Empty); | 63 | connString = dbConfig.GetString("ConnectionString", String.Empty); |
64 | } | 64 | } |
65 | 65 | ||
66 | // Try reading the [SimulationDataStore] section | ||
67 | IConfig simConfig = config.Configs["SimulationDataStore"]; | ||
68 | if (simConfig != null) | ||
69 | { | ||
70 | dllName = simConfig.GetString("StorageProvider", dllName); | ||
71 | connString = simConfig.GetString("ConnectionString", connString); | ||
72 | } | ||
73 | |||
66 | // We tried, but this doesn't exist. We can't proceed | 74 | // We tried, but this doesn't exist. We can't proceed |
67 | if (dllName == String.Empty) | 75 | if (dllName == String.Empty) |
68 | throw new Exception("No StorageProvider configured"); | 76 | throw new Exception("No StorageProvider configured"); |