aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs
diff options
context:
space:
mode:
authorSean McNamara2011-04-26 11:42:06 -0400
committerSean McNamara2011-04-26 11:42:06 -0400
commitc82c7e6ed9ecf4858d5afffa635013bd14e90bdf (patch)
tree0cfc6b76daefda6deaf9239065ae5396124d8faa /OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs
parentMerge git://opensimulator.org/git/opensim (diff)
downloadopensim-SC-c82c7e6ed9ecf4858d5afffa635013bd14e90bdf.zip
opensim-SC-c82c7e6ed9ecf4858d5afffa635013bd14e90bdf.tar.gz
opensim-SC-c82c7e6ed9ecf4858d5afffa635013bd14e90bdf.tar.bz2
opensim-SC-c82c7e6ed9ecf4858d5afffa635013bd14e90bdf.tar.xz
Wait for OnOarFileSaved event callback before executing script
We want to execute the (optional) user script after I/O is done on the oar. I wasn't aware that ArchiveRegion is asynchronous -- now I am. Should fully resolve comment 0018290 at http://opensimulator.org/mantis/view.php?id=5440
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs')
-rw-r--r--OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs
index 1b348af..7fecfa4 100644
--- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs
+++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs
@@ -26,11 +26,17 @@
26/// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26/// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27/// 27///
28 28
29using System;
30using System.Collections.Generic;
31
32
29namespace OpenSim.Region.OptionalModules.World.AutoBackup 33namespace OpenSim.Region.OptionalModules.World.AutoBackup
30{ 34{
31 /// AutoBackupModuleState: Auto-Backup state for one region (scene). 35 /// AutoBackupModuleState: Auto-Backup state for one region (scene).
32 public class AutoBackupModuleState 36 public class AutoBackupModuleState
33 { 37 {
38 private Dictionary<Guid, string> m_liveRequests = null;
39
34 public AutoBackupModuleState() 40 public AutoBackupModuleState()
35 { 41 {
36 this.Enabled = false; 42 this.Enabled = false;
@@ -41,6 +47,14 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
41 this.Script = null; 47 this.Script = null;
42 } 48 }
43 49
50 public Dictionary<Guid, string> LiveRequests
51 {
52 get {
53 return this.m_liveRequests ??
54 (this.m_liveRequests = new Dictionary<Guid, string>(1));
55 }
56 }
57
44 public bool Enabled 58 public bool Enabled
45 { 59 {
46 get; 60 get;