From b1853d9f265fb32cf51d65fdcf2d5b4741911f00 Mon Sep 17 00:00:00 2001
From: Kunnis
Date: Sun, 16 Aug 2009 23:25:12 -0500
Subject: Fixing a spot I missed in assets. Switching Grid to the new naming
schema with Store/Get
---
OpenSim/Data/MSSQL/MSSQLGridData.cs | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
(limited to 'OpenSim/Data/MSSQL/MSSQLGridData.cs')
diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs
index 0ebbf4e..8a3d332 100644
--- a/OpenSim/Data/MSSQL/MSSQLGridData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs
@@ -272,26 +272,23 @@ namespace OpenSim.Data.MSSQL
///
/// The profile to add
/// A dataresponse enum indicating success
- override public DataResponse AddProfile(RegionProfileData profile)
+ override public DataResponse StoreProfile(RegionProfileData profile)
{
- if (InsertRegionRow(profile))
+ if (GetProfileByUUID(profile.UUID) == null)
{
- return DataResponse.RESPONSE_OK;
+ if (InsertRegionRow(profile))
+ {
+ return DataResponse.RESPONSE_OK;
+ }
}
- return DataResponse.RESPONSE_ERROR;
- }
-
- ///
- /// Update the specified region in the database
- ///
- /// The profile to update
- /// A dataresponse enum indicating success
- override public DataResponse UpdateProfile(RegionProfileData profile)
- {
- if (UpdateRegionRow(profile))
+ else
{
- return DataResponse.RESPONSE_OK;
+ if (UpdateRegionRow(profile))
+ {
+ return DataResponse.RESPONSE_OK;
+ }
}
+
return DataResponse.RESPONSE_ERROR;
}
--
cgit v1.1