From f1287cc7af7da26910c5cba456a8c35b6454d815 Mon Sep 17 00:00:00 2001
From: Kunnis
Date: Sun, 16 Aug 2009 18:54:20 -0500
Subject: * Switching IAssetData to follow the new naming schema, removing the
separate insert and update methods.
---
OpenSim/Data/MySQL/MySQLAssetData.cs | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
(limited to 'OpenSim/Data/MySQL')
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs
index 0865083..1b4377a 100644
--- a/OpenSim/Data/MySQL/MySQLAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLAssetData.cs
@@ -135,7 +135,7 @@ namespace OpenSim.Data.MySQL
/// Asset UUID to fetch
/// Return the asset
/// On failure : throw an exception and attempt to reconnect to database
- override protected AssetBase FetchStoredAsset(UUID assetID)
+ override public AssetBase GetAsset(UUID assetID)
{
AssetBase asset = null;
lock (_dbConnection)
@@ -192,7 +192,7 @@ namespace OpenSim.Data.MySQL
///
/// Asset UUID to create
/// On failure : Throw an exception and attempt to reconnect to database
- override public void CreateAsset(AssetBase asset)
+ override public void StoreAsset(AssetBase asset)
{
lock (_dbConnection)
{
@@ -285,15 +285,6 @@ namespace OpenSim.Data.MySQL
}
///
- /// Update a asset in database, see
- ///
- /// Asset UUID to update
- override public void UpdateAsset(AssetBase asset)
- {
- CreateAsset(asset);
- }
-
- ///
/// check if the asset UUID exist in database
///
/// The asset UUID
--
cgit v1.1
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/MySQL/MySQLGridData.cs | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
(limited to 'OpenSim/Data/MySQL')
diff --git a/OpenSim/Data/MySQL/MySQLGridData.cs b/OpenSim/Data/MySQL/MySQLGridData.cs
index 0a5800b..1ec2609 100644
--- a/OpenSim/Data/MySQL/MySQLGridData.cs
+++ b/OpenSim/Data/MySQL/MySQLGridData.cs
@@ -391,7 +391,7 @@ namespace OpenSim.Data.MySQL
///
/// The profile to add
/// Successful?
- override public DataResponse AddProfile(RegionProfileData profile)
+ override public DataResponse StoreProfile(RegionProfileData profile)
{
MySQLSuperManager dbm = GetLockedConnection();
try {
@@ -408,17 +408,6 @@ namespace OpenSim.Data.MySQL
}
///
- /// Update a sim profile
- ///
- /// The profile to update
- /// Sucessful?
- /// Same as AddProfile
- override public DataResponse UpdateProfile(RegionProfileData profile)
- {
- return AddProfile(profile);
- }
-
- ///
/// Deletes a sim profile from the database
///
/// the sim UUID
--
cgit v1.1