aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-06 01:43:12 +0000
committerAdam Frisby2007-05-06 01:43:12 +0000
commit9dfdd7d406ae61f99fa63c710e8fc5973c7625bf (patch)
tree5a5607c12ed50f8ee5f81b86d2004ea08635e8a3 /OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
parentFixed bug with adding sims to DB4o based grid interface (diff)
downloadopensim-SC_OLD-9dfdd7d406ae61f99fa63c710e8fc5973c7625bf.zip
opensim-SC_OLD-9dfdd7d406ae61f99fa63c710e8fc5973c7625bf.tar.gz
opensim-SC_OLD-9dfdd7d406ae61f99fa63c710e8fc5973c7625bf.tar.bz2
opensim-SC_OLD-9dfdd7d406ae61f99fa63c710e8fc5973c7625bf.tar.xz
Fixed collision error with threaded access.
Diffstat (limited to '')
-rw-r--r--OpenGrid.Framework.Data.DB4o/DB4oGridData.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
index 63f976f..c853b50 100644
--- a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
+++ b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
@@ -41,13 +41,16 @@ namespace OpenGrid.Framework.Data.DB4o
41 41
42 public DataResponse AddProfile(SimProfileData profile) 42 public DataResponse AddProfile(SimProfileData profile)
43 { 43 {
44 if (manager.AddRow(profile)) 44 lock (manager.profiles)
45 {
46 return DataResponse.RESPONSE_OK;
47 }
48 else
49 { 45 {
50 return DataResponse.RESPONSE_ERROR; 46 if (manager.AddRow(profile))
47 {
48 return DataResponse.RESPONSE_OK;
49 }
50 else
51 {
52 return DataResponse.RESPONSE_ERROR;
53 }
51 } 54 }
52 } 55 }
53 56