aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLRegionData.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Preliminary work on the new default region setting mechanismMelanie2010-01-091-0/+26
|
* Reverting the memory leak patch for MySQL. Problems have been reported with ↵John Hurliman2009-11-021-114/+114
| | | | the grid server after running for several hours
* Stop null values from being returned on database queriesMelanie2009-10-121-1/+4
|
* Remove the using() constructs from the new style database modules; they causedMelanie2009-10-061-1/+1
| | | | | | | | the underlying connection of a reader or command to be closed before the reader or command itself. Added the proper logic to Close and dispose items in CloseDBConnection. Readers and Connections need Close(), Commands need Dispose(), in the order Reader, Command, Connection. Also reinstated 80-column-friendly formatting
* Added CloseDBConnection() to replace the old CloseReaderCommand(). This will ↵John Hurliman2009-10-051-0/+2
| | | | close the MySQLConnection attached to a MySQLCommand. I'm not sure if this accounts for every time a database connection needs to be closed, but it matches up 1:1 with the places where the database connection was previously being closed
* * MySQL data tests now pass by fixing a bad fix for a bad cast on the asset ↵John Hurliman2009-10-041-121/+119
| | | | | | Local member in MySQLAssetData * First pass at applying the using(){} pattern to IDisposable objects. Always use the using pattern on IDisposable objects whenever possible, do not manually call .Close() or .Dispose() unless there is no other way to write the code. This pass mostly covers OpenSim.Data.MySQL, and should have no functional change (tests still pass)
* Make the RegionData plugin store the RegionNameMelanie2009-09-271-2/+3
|
* Prevent manually setting Data["locX"] and Data["locY"], since that wouldMelanie2009-09-271-0/+4
| | | | overwrite the posX and posY members of the structure
* Merge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensimMelanie2009-09-271-7/+4
|\ | | | | | | | | Conflicts: OpenSim/Data/MySQL/MySQLRegionData.cs
| * minor: remove some mono compiler warningsJustin Clark-Casey (justincc)2009-09-251-1/+1
| |
| * All tests pass for MySQL/MySQLRegionData.Diva Canto2009-09-241-12/+3
| | | | | | | | Added OpenSim.GridServer.ini.example that I have been using for testing the ROBUST grid service with the GridClient.
* | Add the Migration for the regions tableMelanie2009-09-271-8/+14
|/
* Adding the MySQL RegionData service.Melanie2009-09-161-1471/+144
|
* Thank you, dslake, for a set of patches to improve OpenSim startupMelanie2009-09-021-9/+40
| | | | and idle performance.
* Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis2009-08-161-7/+10
|
* * Remove hard coded 256 limitations from various places. There's no more ↵Teravus Ovares (Dan Olivares)2009-08-071-6/+6
| | | | 256m limitation within the OpenSimulator framework, however, the LLClient ClientView does not support regions larger then 256 meters so, if you try and make your region larger by setting Constants.RegionSize = 512; in OpenSim.Framework.Constants.cs, the terrain will not display on clients using the LLUDP protocol
* * Updates libOMV to version 0.7.0Teravus Ovares2009-07-251-2/+2
| | | | | | | | * Uses mantis #3811 as a base (thanks jhuliman) with changes. * E-mail regarding interface changes sent to the opensim-dev list * Archive: https://lists.berlios.de/pipermail/opensim-dev/2009-July/007219.html
* From: Chris Yeoh <yeohc@au1.ibm.com>Sean Dague2009-06-301-1/+1
| | | | | | | Ooops, sorry there was a bug in the patch and causes an exception on some system (I think it only happens on windows since it didn't occur during my testin). I've attached a one liner which fixes the problem.
* From: Chris Yeoh <yeohc@au1.ibm.com>Sean Dague2009-06-291-13/+4
| | | | | | | | Attached is a patch that changes the oar file saving of creation date/time to an integer instead of a string. I did this after justincc emailed me saying there is a problem with internationalisation doing it the old way and I said I'd fix it. Its been tested with MySQL and I've made the changes for MSSQL but that hasn't been well tested.
* From: Chris Yeoh <yeohc@au1.ibm.com>Dr Scofield2009-06-031-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds oar file date and time (UTC) meta data to an oar file when it is created. It also adds a unique ID, though this id does not in anyway identify the machine that the oar file was created on. When an oar file with this meta data is loaded this extra information is saved with the region settings and available via LSL through: - osLoadedCreationDate() - osLoadedCreationTime() - osLoadedCreationID() If there is no meta data these fields will be blank. Subsequent oar file loads will erase the information for the previous oar file load. Persistence has only been implemented for MySQL, the other backends need updating. Overall this allows us to much more easily identify the specific version of software that clients are using. Its very straightforward to edit the oar file to change the ID string to be something more human friendly. Included in the patch is a new file OpenSim/Data/MySQL/Resources/030_RegionStore.sql required for the MySQL DB migration. btw I had a chat with justincc about this a few weeks ago since he wrote the oar file import/export and he sounded happy to accept something that included date/time information but didn't want anything that would silently leak private information like machine names.
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-011-1/+1
| | | | LICENSE.txt.
* From: Chris Yeoh <cyeoh@au1.ibm.com>Dr Scofield2009-05-271-2/+12
| | | | | | | | | | | | The attached patch implements llPassTouches. It has been added to the export/import XML along with the flag for AllowedInventoryDrop. The MySQL backend has been updated as well, though I haven't done one of those before so could do with a check. I added the migration mysql file as well. The other data backends need updating as well.
* Revert "From: Chris Yeoh <cyeoh@au1.ibm.com>"Dr Scofield2009-05-251-12/+2
| | | | | This reverts r9666. for some reason the mysql update does not work.
* From: Chris Yeoh <cyeoh@au1.ibm.com>Dr Scofield2009-05-251-2/+12
| | | | | | | | | | | | The attached patch implements llPassTouches. It has been added to the export/import XML along with the flag for AllowedInventoryDrop. The MySQL backend has been updated as well, though I haven't done one of those before so could do with a check. I added the migration mysql file as well. The other data backends need updating as well.
* * Consistently used dashed uuid format for mysql region data, as is done for ↵Justin Clarke Casey2009-05-071-29/+26
| | | | | | | | | | all other tables * This revision contains a mysql data migration. Please backup your mysql region database as a precaution before using this code. * I also advise that you do a runprebuild[.sh|.bat] and a clean build ("nant clean build" if you're using the command line). * This change is needed for future id schemes
* * Refactored SOP.FolderID weirdness by removing calls to empty setter. YEs, ↵lbsa712009-02-251-4/+0
| | | | | | | I do realize the setter has to be there for legacy reasons, but since the calls will never acually DO anyhting, I'm removing them. * So, SOP.FolderID is actually a cruft field that should be removed.
* * optimized usings.lbsa712009-02-121-4/+4
|
* This changeset is the step 1 of 2 in refactoringDr Scofield2009-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
* * If an orphaned group is found in the mysql or mssql databases (i.e. there ↵Justin Clarke Casey2009-01-291-1/+15
| | | | | | | | | | | | is no prim where UUID = SceneGroupID), then force one prim to have UUID = SceneGroupID. * A warning is posted about this on startup giving the location of the object * This should allow one class of persistently undeletable prims to be removed * This change should not cause any issues, but I still suggest that you backup your database beforehand * If this doesn't work for previously linked objects, then you could also try the workaround in http://opensimulator.org/mantis/view.php?id=3059 * This change has been made to mysql and mssql, but sqlite appears to work in a different way
* * Fix http://opensimulator.org/mantis/view.php?id=2889Justin Clarke Casey2008-12-231-2/+2
| | | | | | * Primshapes uuid wasn't being converted to raw (non-dashed) format before being used in primshapes delete command
* change a UUID cast to an actual new UUID call to be consistant withSean Dague2008-12-081-1/+1
| | | | | the rest of the assignments here.
* fix an issue I found where primshapes weren't every being removedSean Dague2008-12-081-9/+82
| | | | | | | | because of a logic error. attempt to speed up deletes a bit by batching up all the primitem deletes and primshape deletes into single delete statements. This removes the lock/release/lock/release/lock/release for loop.
* * Resolve http://opensimulator.org/mantis/view.php?id=2743 and ↵Justin Clarke Casey2008-12-021-5/+3
| | | | | | | | | | | | http://opensimulator.org/mantis/view.php?id=2739 by no longer bothering to store or retrieve the local parentID in the region database * The original issue is that the now randomly generated local ids do not fit into the int parentID datatype * However, as far as I know it's actually pointless to store this local parent ID anyway (we already store the groupUUID), especially as we don't bother to store the localID (as opposed to UUID itself). * Conservatively, the actual column will be removed in a later commit
* Catch all possible exceptions in the mysql module. It throws non-mysqlMelanie Thielker2008-12-021-2/+2
| | | | | | exceptions as well.
* Fix the terrain loaderMelanie Thielker2008-12-011-1/+1
|
* More reverts. Revert the MySQL database module. This caused more issuesMelanie Thielker2008-12-011-474/+513
| | | | | | than it solved by trying to use, and then exhausting, the connection pool
* More changes to the MySQL adapter. take advantage of pooling and run lock-free.Melanie Thielker2008-11-301-507/+472
| | | | | | | | This should finally kill the "There is already an open data reader associated with this connection, which must be closed first" error that makes people's builds not save
* Update svn properties. Add copyright header. Minor formatting cleanup.Jeff Ames2008-11-301-1/+1
|
* Explicitly Dispose() all cmd objectsMelanie Thielker2008-11-291-1/+15
|
* * minor: remove mono compiler warningsJustin Clarke Casey2008-11-271-1/+0
|
* * restore deleted method documentation, some to IRegionDataStore and some to ↵Justin Clarke Casey2008-11-261-1/+10
| | | | | | | | MySQLRegionData * I would like to keep documentation on methods, even if it sometimes seems obvious (and not all of these are)
* Yay for unit tests. Increased the type width of the prims and primshapesMelanie Thielker2008-11-261-38/+38
| | | | | | | tables, and changed the database modules to actually push these doubles down into the database layer.
* Fix 2 of the failed tests. Cause terrain queries to return null when noMelanie Thielker2008-11-261-1/+1
| | | | | | | | | terrain is found, rather than a default "0" terrain. Remove the "remove object wrong region" test. UUIDs either are unique or they're not. This test tested a bad behavior I have chosen not to duplicate.
* Committing the LCO database layer. Native MySQL, no ADO. New reconnectMelanie Thielker2008-11-261-1472/+740
| | | | | | | | mechanism to prevent prim loss. Preserve link order on sim restart and drag copy. Fix drag-copied prims' inventories. Fix persistence of child prim inventories.
* Remove code from an experimantal patch that wasn't supposed to be committedMelanie Thielker2008-11-231-39/+13
|
* Don't serve texture preview from other people's objects if youMelanie Thielker2008-11-231-13/+39
| | | | | | havenever seen that texture before.
* * refactor: Rip out SOP inventory from the partial into a separate classJustin Clarke Casey2008-11-211-1/+1
| | | | | | | | * SceneObjectPartInventory.cs isn't a particularly good name but it's probably not got a long life * A proper inventory interface to follow * Parallel changes for other inventory partial classes to follow at a later date
* Mantis#2656. Thank you kindly, Nlin for a patch that:Charles Krinke2008-11-191-0/+9
| | | | | | Attached patch implements llCollisionSound. Thanks T. Sado.
* Fixed MySQL and SQLite so they will save theSean Dague2008-11-181-0/+11
| | | | | | | variable sun vector, adding 3 new fields on both. From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
* Make a quick stab at the "Open data reader" issue.Melanie Thielker2008-11-161-8/+20
| | | | | | | MySqlDataReader needs to be Close()d explicitly. Disposing it or letting it fall out of scope will not free it's hold on the connection.