Commit Graph

246 Commits (d21601d497e81108860e880653757dc3773cdb47)

Author SHA1 Message Date
Jeff Ames a3d14832af Update svn properties, minor formatting cleanup. 2009-02-09 22:49:05 +00:00
Charles Krinke 29f54db90a Thank you kindly, TLaukkan (Timmil) for a patch that:
* Fixed and added athursv's BasicEstateTest
* Added MySQLEstateTest
* Added SQLiteEstateTest
2009-02-09 22:07:27 +00:00
Dr Scofield 9b66108081 This changeset is the step 1 of 2 in refactoring
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!
2009-02-06 16:55:34 +00:00
Mike Mazur 0c03a48fb2 - add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
- trim trailing whitespace
2009-02-04 00:01:36 +00:00
Mike Mazur f8e45e8e98 Rename IAssetProviderPlugin to IAssetDataPlugin aligning with the other data plugins. 2009-02-03 05:20:03 +00:00
Justin Clarke Casey 13f069b945 * If an orphaned group is found in the mysql or mssql databases (i.e. there 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
2009-01-29 20:08:04 +00:00
Mike Mazur 7aa216d574 Slight cleanup of docs, removing trailing whitespace. 2009-01-28 01:55:45 +00:00
Justin Clarke Casey 0828c28501 * Remove unused prims.ParentID field from SQLite and MySQL
* Since this is a db change, as always I strongly recommend that you backup your database before updating to this revision
* Haven't touched MSSQL in case I get it wrong - looking for some kind soul to take care of this.
2009-01-19 15:16:17 +00:00
Melanie Thielker c5395feadd Avoid an invalid cast on legacy data 2009-01-18 23:31:13 +00:00
Sean Dague 7934094cf3 * Added MySQL Grid unit tests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-01-14 19:34:14 +00:00
Justin Clarke Casey 8d035b196d * Apply http://opensimulator.org/mantis/view.php?id=2948
* This fixes adding and updating user profiles in MySQL on platforms that have a commas as a decimal separator
* Thanks Tommil!
2009-01-07 18:46:27 +00:00
Sean Dague d8a2ad5cb5 change the drop order to see if this affects unit test fails
From: Sean Dague <sdague@gmail.com>
2009-01-05 15:59:08 +00:00
Justin Clarke Casey e64d9b66a9 * Fix http://opensimulator.org/mantis/view.php?id=2889
* Primshapes uuid wasn't being converted to raw (non-dashed) format before being used in primshapes delete command
2008-12-23 20:41:52 +00:00
Homer Horwitz fb49e010b7 Update the MySQL connector to 5.2.5. Fixes Mantids#2673. Thanks for the hint, jhurliman. 2008-12-22 19:49:17 +00:00
Sean Dague 444436db15 change a UUID cast to an actual new UUID call to be consistant with
the rest of the assignments here.
2008-12-08 17:06:47 +00:00
Sean Dague a260466147 fix an issue I found where primshapes weren't every being removed
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.
2008-12-08 16:29:48 +00:00
Justin Clarke Casey 26fd6c741f * Resolve http://opensimulator.org/mantis/view.php?id=2743 and 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
2008-12-02 14:59:52 +00:00
Melanie Thielker bf4ccf3858 Catch all possible exceptions in the mysql module. It throws non-mysql
exceptions as well.
2008-12-02 01:50:15 +00:00
Melanie Thielker 733faf9748 Fix the terrain loader 2008-12-01 19:08:58 +00:00
Melanie Thielker 5727146d61 More reverts. Revert the MySQL database module. This caused more issues
than it solved by trying to use, and then exhausting, the connection pool
2008-12-01 18:59:13 +00:00
Melanie Thielker 38380def17 More changes to the MySQL adapter. take advantage of pooling and run lock-free.
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
2008-11-30 05:20:19 +00:00
Jeff Ames 077314cdd3 Update svn properties. Add copyright header. Minor formatting cleanup. 2008-11-30 00:51:40 +00:00
Melanie Thielker d579246257 Explicitly Dispose() all cmd objects 2008-11-29 21:24:54 +00:00
Justin Clarke Casey 8ba6b2b11a * minor: remove mono compiler warnings 2008-11-27 19:51:11 +00:00
Justin Clarke Casey 45c50998c2 * Remove unused and largely unimplemented UpdateUserCurrentRegion()
* please say if this causes you a problem
2008-11-27 19:43:26 +00:00
Justin Clarke Casey c85e2a0fb0 * restore deleted method documentation, some to IRegionDataStore and some to MySQLRegionData
* I would like to keep documentation on methods, even if it sometimes seems obvious (and not all of these are)
2008-11-26 17:42:35 +00:00
Melanie Thielker fdf5f55a5b Yay for unit tests. Increased the type width of the prims and primshapes
tables, and changed the database modules to actually push these doubles
down into the database layer.
2008-11-26 12:23:56 +00:00
Melanie Thielker 4fdda32cd3 A migration to make the floats in prims table be doubles 2008-11-26 11:38:58 +00:00
Melanie Thielker 841c53003f A migration to convert the floats int the database to doubles.
Maybe we don't have to say "Shift happens" as often anymore....
2008-11-26 09:05:11 +00:00
Melanie Thielker 3388584aa8 Fix 2 of the failed tests. Cause terrain queries to return null when no
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.
2008-11-26 08:06:14 +00:00
Melanie Thielker 3efdccbb12 Committing the LCO database layer. Native MySQL, no ADO. New reconnect
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.
2008-11-26 07:34:38 +00:00
Melanie Thielker 95fec14201 Remove code from an experimantal patch that wasn't supposed to be committed 2008-11-23 21:03:54 +00:00
Melanie Thielker fba9e3f513 Don't serve texture preview from other people's objects if you
havenever seen that texture before.
2008-11-23 20:39:51 +00:00
Melanie Thielker cbd0221870 Plumb in the presence notifications and region shutdown/restart messages
from the presence module to the message server, through the user server
and on into the database. This should fix the "Already logged in" issue
that grids see after a sim crashes, or a user crashes out of a sim.
Not yet a 100% solution for friends, but getting there.
2008-11-23 05:16:07 +00:00
Justin Clarke Casey 915593bfbc * refactor: Rip out SOP inventory from the partial into a separate class
* 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
2008-11-21 21:16:42 +00:00
Jeff Ames ecac5c9c5a Update svn properties, minor formatting cleanup. 2008-11-21 18:44:48 +00:00
Charles Krinke 44c56a974c Mantis#2656. Thank you kindly, Nlin for a patch that:
Attached patch implements llCollisionSound. Thanks T. Sado.
2008-11-19 18:30:16 +00:00
Sean Dague 5517ea3dfd Fixed MySQL and SQLite so they will save the
variable sun vector, adding 3 new fields on both.

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-18 12:48:36 +00:00
Melanie Thielker 8e119130c5 Make a quick stab at the "Open data reader" issue.
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.
2008-11-16 04:39:41 +00:00
Homer Horwitz e26169f0b0 Mantis#2552: Thanks idb, for a patch that fixes persistence of physical prims.
(added a fix for the broken build from last commit, too)
2008-11-15 18:00:34 +00:00
Melanie Thielker 1bd0721dbe Add SQLite and the missing migrations files for last commit 2008-11-14 19:00:14 +00:00
Melanie Thielker d66f3993de Add group permissions to agent inventory.
Contains a migration. May contain nuts.
Please back up your inventory data store. This revision changes the interface
version!! No older regions can connect to these new UGAIM, and the new regions
can't connect to the old UGAIM. Fixes a long-standing issue of permissions loss
Currently persisted on MySQL only.
2008-11-14 18:54:38 +00:00
Sean Dague cc5ccfb315 make inventory item listing more robust. It turns out that a bad item
(one that won't parse right) will prevent all other items in that folder
to load when inventory is requested.  This is very careful to no longer
add inventory items that return as null to the hash table for
getInventoryInFolder, as well as be more careful parsing UUIDs for
fields that aren't marked not null in MySQL.

The net result, you may see previously missing inventory items return
after this checkin.  Folders probably need to be hardened in the same
way, but I'm out of time for today.
2008-11-13 22:53:49 +00:00
Melanie Thielker c18ce34d06 Update avatar picker search to work with OpenSearch people search 2008-11-13 03:24:23 +00:00
Justin Clarke Casey 0e180b0ad3 * refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
2008-11-10 20:04:55 +00:00
Homer Horwitz 344b725d3b Mantis#2598: Thanks Fly-Man- for a patch that fixes a client-thread crash by
allowing landFlags bit 31 to be used (Int32 -> UInt32).
2008-11-08 20:04:28 +00:00
Jeff Ames bbb8d6fc51 Remove empty OSUUID.cs file. Add copyright headers. Minor formatting cleanup. 2008-11-08 14:28:43 +00:00
Sean Dague 629b0d9f28 add create_time and access_time to asset db for mysql, as well
as the code to update these at the appropriate time.  This isn't
surfaced in AssetBase yet.

Change the replace into to an insert into for asset create.  Assets
are not supposed to be updatable, and the replace into is more
expensive.

From: Sean Dague <sdague@gmail.com>
2008-11-06 21:21:46 +00:00
Sean Dague 46492f3c11 From: arthursv@linux.vnet.ibm.com
Add more unit tests for user cases
Persist more user fields into mysql that already had columns
defined but weren't getting passed to the mysql manager.
2008-11-06 17:07:08 +00:00
Sean Dague 7d6dc3b099 add some null protection on email
From: Sean Dague <sdague@gmail.com>
2008-11-04 19:26:17 +00:00