diff options
author | Mic Bowman | 2014-01-20 11:33:49 -0800 |
---|---|---|
committer | Mic Bowman | 2014-01-20 11:33:49 -0800 |
commit | 2e78e89c36e661f72773e54f97bec3f04af67b79 (patch) | |
tree | 5a897ad06a5ce1857f066c022ee751d3175062a5 /OpenSim/Region/Framework/Interfaces | |
parent | update OpenMetaverse.StructuredData to git master (bf4e9f654ff99c85e20b53e56f... (diff) | |
download | opensim-SC_OLD-2e78e89c36e661f72773e54f97bec3f04af67b79.zip opensim-SC_OLD-2e78e89c36e661f72773e54f97bec3f04af67b79.tar.gz opensim-SC_OLD-2e78e89c36e661f72773e54f97bec3f04af67b79.tar.bz2 opensim-SC_OLD-2e78e89c36e661f72773e54f97bec3f04af67b79.tar.xz |
Clean up orphaned json stores. This can happen when an object is
removed, when a script is removed, or when a script is reset. Also
added a stats command to track the number of json stores used by
a region. Will probably add some more commands later.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs b/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs index b67312e..1a89721 100644 --- a/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs | |||
@@ -51,10 +51,17 @@ namespace OpenSim.Region.Framework.Interfaces | |||
51 | UUID = 5 | 51 | UUID = 5 |
52 | } | 52 | } |
53 | 53 | ||
54 | public struct JsonStoreStats | ||
55 | { | ||
56 | public int StoreCount; | ||
57 | } | ||
58 | |||
54 | public delegate void TakeValueCallback(string s); | 59 | public delegate void TakeValueCallback(string s); |
55 | 60 | ||
56 | public interface IJsonStoreModule | 61 | public interface IJsonStoreModule |
57 | { | 62 | { |
63 | JsonStoreStats GetStoreStats(); | ||
64 | |||
58 | bool AttachObjectStore(UUID objectID); | 65 | bool AttachObjectStore(UUID objectID); |
59 | bool CreateStore(string value, ref UUID result); | 66 | bool CreateStore(string value, ref UUID result); |
60 | bool DestroyStore(UUID storeID); | 67 | bool DestroyStore(UUID storeID); |