aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-01 18:58:20 +0000
committerAdam Frisby2007-06-01 18:58:20 +0000
commit30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c (patch)
tree1c177fb62fa71b6b8b546baef8941961731b325a /OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
parent* Completed read-only inventory data operations (diff)
downloadopensim-SC_OLD-30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c.zip
opensim-SC_OLD-30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c.tar.gz
opensim-SC_OLD-30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c.tar.bz2
opensim-SC_OLD-30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c.tar.xz
* MySQL Inventory data interfaces written - can now write an inventory server (yay!)
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
index 48d8e93..50ffbb0 100644
--- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
@@ -194,7 +194,10 @@ namespace OpenGrid.Framework.Data.MySQL
194 194
195 public void addInventoryItem(InventoryItemBase item) 195 public void addInventoryItem(InventoryItemBase item)
196 { 196 {
197 197 lock (database)
198 {
199 database.insertItem(item);
200 }
198 } 201 }
199 202
200 public void updateInventoryItem(InventoryItemBase item) 203 public void updateInventoryItem(InventoryItemBase item)
@@ -204,7 +207,10 @@ namespace OpenGrid.Framework.Data.MySQL
204 207
205 public void addInventoryFolder(InventoryFolderBase folder) 208 public void addInventoryFolder(InventoryFolderBase folder)
206 { 209 {
207 210 lock (database)
211 {
212 database.insertFolder(folder);
213 }
208 } 214 }
209 215
210 public void updateInventoryFolder(InventoryFolderBase folder) 216 public void updateInventoryFolder(InventoryFolderBase folder)