From cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 11 Apr 2008 09:56:22 +0000 Subject: * Discerned between AddProfile and UpdateProfile in region registration :: Believe it or not, but INSERT/UPDATE is actually a better pattern than REPLACE, since, with INSERT/UPDATE you can catch erroneous UPDATES to non-INSERTed items as well as catch erroneous re-INSERTS. in 95% of the cases, you SHOULD have a clear INSERT context, and a clear and separate UPDATE context. If you think your case falls within the 5%, maybe you should re-evaluate your code. :: --- OpenSim/Data/DB4o/DB4oGridData.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Data/DB4o') diff --git a/OpenSim/Data/DB4o/DB4oGridData.cs b/OpenSim/Data/DB4o/DB4oGridData.cs index 797fdd4..c388cb6 100644 --- a/OpenSim/Data/DB4o/DB4oGridData.cs +++ b/OpenSim/Data/DB4o/DB4oGridData.cs @@ -125,6 +125,11 @@ namespace OpenSim.Data.DB4o } } + override public DataResponse UpdateProfile(RegionProfileData profile) + { + return AddProfile(profile); + } + /// /// Authenticates a new region using the shared secrets. NOT SECURE. /// -- cgit v1.1