diff options
author | Justin Clark-Casey (justincc) | 2012-11-09 00:59:18 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-11-09 01:13:19 +0000 |
commit | 75c880a6f3631a527b532773a8a493309a96028e (patch) | |
tree | d07023ef4a277420b66f3b144df3be1287c26d92 /OpenSim/Services | |
parent | ODECharacter overrides TargetVelocity. No change to existing behavior (diff) | |
download | opensim-SC-75c880a6f3631a527b532773a8a493309a96028e.zip opensim-SC-75c880a6f3631a527b532773a8a493309a96028e.tar.gz opensim-SC-75c880a6f3631a527b532773a8a493309a96028e.tar.bz2 opensim-SC-75c880a6f3631a527b532773a8a493309a96028e.tar.xz |
Update parent inventory folder version numbers when folders are moved/created/deleted to match version numbers cached by viewers.
This is done in the way that one would expect (e.g. moving a folder increments version number on both source and destination parent folders).
This should hopefully improve viewer reuse of its cached inventory information.
Currently MySQL only but will be implement for SQLite/MSSQL if there are no issues.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/InventoryService/XInventoryService.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index 309dab4..9abc5e4 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -400,16 +400,7 @@ namespace OpenSim.Services.InventoryService | |||
400 | 400 | ||
401 | public virtual bool MoveFolder(InventoryFolderBase folder) | 401 | public virtual bool MoveFolder(InventoryFolderBase folder) |
402 | { | 402 | { |
403 | XInventoryFolder[] x = m_Database.GetFolders( | 403 | return m_Database.MoveFolder(folder.ID.ToString(), folder.ParentID.ToString()); |
404 | new string[] { "folderID" }, | ||
405 | new string[] { folder.ID.ToString() }); | ||
406 | |||
407 | if (x.Length == 0) | ||
408 | return false; | ||
409 | |||
410 | x[0].parentFolderID = folder.ParentID; | ||
411 | |||
412 | return m_Database.StoreFolder(x[0]); | ||
413 | } | 404 | } |
414 | 405 | ||
415 | // We don't check the principal's ID here | 406 | // We don't check the principal's ID here |