diff options
author | lbsa71 | 2008-04-11 09:56:22 +0000 |
---|---|---|
committer | lbsa71 | 2008-04-11 09:56:22 +0000 |
commit | cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c (patch) | |
tree | f2172eccc3652e6f5bccc2be3cf71ec838801f47 /OpenSim/Data/IGridData.cs | |
parent | * Added a "regionload_regionsdir" option to OpenSim.ini which determines wher... (diff) | |
download | opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.zip opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.gz opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.bz2 opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.xz |
* 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. ::
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/IGridData.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Data/IGridData.cs b/OpenSim/Data/IGridData.cs index feb372e..c924031 100644 --- a/OpenSim/Data/IGridData.cs +++ b/OpenSim/Data/IGridData.cs | |||
@@ -113,6 +113,8 @@ namespace OpenSim.Data | |||
113 | /// <returns>RESPONSE_OK if successful, error if not.</returns> | 113 | /// <returns>RESPONSE_OK if successful, error if not.</returns> |
114 | DataResponse AddProfile(RegionProfileData profile); | 114 | DataResponse AddProfile(RegionProfileData profile); |
115 | 115 | ||
116 | DataResponse UpdateProfile(RegionProfileData profile); | ||
117 | |||
116 | ReservationData GetReservationAtPoint(uint x, uint y); | 118 | ReservationData GetReservationAtPoint(uint x, uint y); |
117 | } | 119 | } |
118 | } | 120 | } |