aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Asset (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Updated OpenSim-as-addin version from 0.5 to 0.8.1. The addin version number ↵Diva Canto2014-12-291-1/+1
| | | | doesn't need to match the release version number, but I think it's a very good idea that they do.
* Make "fache assets" console command more efficient by only updating access ↵Justin Clark-Casey (justincc)2014-12-051-17/+24
| | | | times on each cached asset once, not for every reference.
* If "fcache assets" is executed, don't stop with an exception if there's an ↵Justin Clark-Casey (justincc)2014-12-041-2/+1
| | | | | | access violation if another thread is operating on the file at the same time. Resolves one issue from http://opensimulator.org/mantis/view.php?id=7271
* refactor: breakout flotasm cache last file access time to separate ↵Justin Clark-Casey (justincc)2014-12-041-7/+19
| | | | UpdateFileLastAccessTime() method for imminent reuse.
* Don't worry about checking FlotsamAssetCache.m_CurrentlyWriting when ↵Justin Clark-Casey (justincc)2014-12-041-8/+1
| | | | | | updating access time. The majority of updates won't be for anything currently writing and any sharing exception from an actual clash can be caught and ignored anyway.
* refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2014-11-251-2/+2
| | | | | | | | thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
* Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2014-11-251-1/+1
| | | | | | problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
* refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)2014-11-251-1/+0
| | | | | | package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
* For monitoring purposes, start non-timeout tasks (which do not currently use ↵Justin Clark-Casey (justincc)2014-09-051-1/+3
| | | | | | | a threadpool) via Watchdog.RunInThread() rather than Util.RunThreadNoTimeout() The functionality is the same but this allow us to monitor such tasks via "show threads" and abort them for test purposes, etc. Also extends thread names to provide more info (e.g. SendInitialDataToClient says what client the task is for).
* Actually call Close() for shared region modules when the simulator is being ↵Justin Clark-Casey (justincc)2014-07-021-3/+6
| | | | | | shutdown. Adds regression test for this case.
* Added assets service method AssetsExist(), which returns whether the given ↵Oren Hurvitz2014-04-021-0/+12
| | | | | | list of assets exist. This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
* - Increased the threadpool timeout to 10 minutesOren Hurvitz2014-03-261-2/+2
| | | | - Changed a few places that launch long-lasting threads to skip the timeout altogether
* Materials module: a) Store materials as assets; b) Finalized it (removed the ↵Oren Hurvitz2014-01-201-2/+2
| | | | | | "Demo" label; removed most of the logging); c) Enabled by default Changed UuidGatherer to use 'sbyte' to identify assets instead of 'AssetType'. This lets UuidGatherer handle Materials, which are defined in a different enum from 'AssetType'.
* Remove redundant methods in FlotsamAssetCacheJustin Clark-Casey (justincc)2014-01-181-10/+0
|
* implement CoreAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-1/+2
|
* implement GlynnTuckerAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-1/+1
|
* Properly implement CenomeAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-2/+4
|
* Simplify FlotsamAssetCache.CheckFromMemoryCache()Justin Clark-Casey (justincc)2014-01-181-6/+1
|
* Elminate some copy/paste in FlotsamAssetCache.CheckFromFileCache() and use ↵Justin Clark-Casey (justincc)2014-01-181-33/+10
| | | | using() construct to ensure filestream is always closed
* elminate unnecessary asset != null check in FlotsamAssetCache.UpdateFileCache()Justin Clark-Casey (justincc)2014-01-181-50/+47
| | | | Passed in asset is always not null
* Committing the Avination Scene Presence and related texture codeMelanie2013-12-114-40/+144
| | | | | | | | | - Parts of region crossing code - New bakes handling code - Bakes now sent from sim to sim without central storage - Appearance handling changes - Some changes to sitting - A number of unrelated fixes and improvements
* Make "fcache status" command also display information on disk/mem cache hit ↵Justin Clark-Casey (justincc)2013-10-301-18/+38
| | | | rate that is currently only displayed if LogLevel >=1 in [AssetCache] config
* Put fcache commands output to console, not logJustin Clark-Casey (justincc)2013-10-301-28/+25
|
* In the flotasm asset cache, if we get a request for a file that we're ↵Justin Clark-Casey (justincc)2013-03-301-25/+27
| | | | actively writing, simply return null instead of first logging an exception.
* Don't allow exceptions to propogate from FlotsamAssetCache which may occur ↵Justin Clark-Casey (justincc)2013-02-081-32/+57
| | | | | | when deleting expired files or stamping the region status file. Changes various error level log lines to warn since these are not fatal to the operation of OpenSimulator
* Log missing assets on "fcache assets" found. This ignores references found ↵Justin Clark-Casey (justincc)2013-02-021-15/+26
| | | | | | | | by scanning LSL/notecard files since these are the source of false positives. This also changes UuidGatherer to reutn an AssetType.Unknown for embedded script/lsl references instead of Texture, since these are often not textures. This is added to help people in determining when they have missing assets such as textures, etc. In this case, one wants to run "fcache clear" first.
* minor: Fix more compiler warnings in CoreModules tests by properly ↵Justin Clark-Casey (justincc)2012-12-051-1/+3
| | | | overriding OpenSimTestCase.SetUp()
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-241-1/+1
| | | | automatically turns off any logging enabled between tests
* Possibly fixes mantis #6429 (Flotsam cache having a null ref to the asset ↵Diva Canto2012-11-141-4/+2
| | | | service)
* Another 21 modules' directives moved out of .addin.xmlDiva Canto2012-11-133-0/+6
|
* Cleanup on region modules: gave short node id's to all of them.Diva Canto2012-11-121-1/+1
|
* Cleaning up some confusion with Addin names introduced in a prior commit. ↵Diva Canto2012-11-101-2/+2
| | | | Also the Flotsam cache module was being given a different Addin name, I removed that.
* For FlotsamAssetCache, always update access times of cached scene assets ↵Justin Clark-Casey (justincc)2012-09-151-20/+17
| | | | | | | | before looking for files to expire. This is to resolve a problem where an asset marked as local but not temporary but still used in the scene would be removed. The timed expiry scan no longer tries to refetch assets from the scene that are not currently in the cache - this is not helpful since it just drags a lot of data into the cache that may never be referenced. This removes the DeepScanBeforePurge option since setting this to false will introduce the above problem. This previously had a default of true.
* Adjust namespce of FlotsamCacheBlueWall2012-09-092-2/+1
| | | | Place FloatsamCache in the same namespace as our other core asset caches
* Revert "Move addin information to CoreModulePlugin.addin.xml"BlueWall2012-09-092-2/+6
| | | | | | This reverts commit 2ec34580ce3807cede97539488237040e1a8a6cc. Moving the attributes for mono addins back to the source file - this also fixes http://opensimulator.org/mantis/view.php?id=6278.
* Move addin information to CoreModulePlugin.addin.xmlBlueWall2012-09-072-6/+2
| | | | Move the addin information from attributes in the source file to the CoreModulePlugin.xml, which is the standard. This will help us automate addin version dependency information when we make new OpenSim releases.
* minor: Lower flotsam asset cache warning about not having a FlotsamCache.ini ↵Justin Clark-Casey (justincc)2012-06-201-1/+1
| | | | | | to debug It's perfectly okay not to have this section.
* Use the more efficient HashSet instead of List for ↵Justin Clark-Casey (justincc)2012-05-041-1/+1
| | | | FlotasmAssetCache.m_CurrentlyWriting
* Don't try and update the access time of a file that is actively being cached.Justin Clark-Casey (justincc)2012-05-041-2/+6
| | | | | This may cause IOErrors on Windows. Aims to help with http://opensimulator.org/mantis/view.php?id=6003
* Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)2012-04-271-1/+1
| | | | | | | | the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
* Change "help" to display categories/module list then "help ↵Justin Clark-Casey (justincc)2012-03-081-4/+4
| | | | | | | | | | | <category/module>" to display commands in a category. This is to deal with the hundred lines of command splurge when one previously typed "help" Modelled somewhat on the mysql console One can still type help <command> to get per command help at any point. Categories capitalized to avoid conflict with the all-lowercase commands (except for commander system, as of yet). Does not affect command parsing or any other aspects of the console apart from the help system. Backwards compatible with existing modules.
* refactor: rename some AssetHelpers.CreateAsset() methods to ↵Justin Clark-Casey (justincc)2011-10-221-4/+4
| | | | CreateNotecardAsset()
* minor: change some comment text in flotsam asset cacheJustin Clark-Casey (justincc)2011-08-161-4/+3
|
* On Flotsam asset cache, go back to moving the file from the temporary ↵Justin Clark-Casey (justincc)2011-08-161-26/+47
| | | | | | | location rather than copying. Copying doesn't prevent IOExceptions on Windows due to file locking. (e.g. Mantis 5642, 5630). So instead go back to moving the file, swallowing IOExceptions that occur just for the move due to competing caching threads or even different opensimulator instances.
* Fix a problem in the Flotsam asset cache where assets were being put into ↵Justin Clark-Casey (justincc)2011-08-131-2/+6
| | | | | | | | | the memory cache even when it wasn't enabled. This hopefully addresses http://opensimulator.org/mantis/view.php?id=5634 This is the most probable cause of the memory problems that people have been seeing in the past month. This bug has been around since commit 5dc785b (4th July 2011). Doh! This is why regressions tests are such a good idea... :) Many thanks to Nebadon for using git bisect to track down this bug, which made it a 5 minute fix.
* rename TestHelper => TestHelpers for consistencyJustin Clark-Casey (justincc)2011-08-061-6/+6
|
* rename test SceneSetupHelpers -> SceneHelpers for consistencyJustin Clark-Casey (justincc)2011-08-061-2/+2
|
* refactor: remove a sliver of unnecessary codeJustin Clark-Casey (justincc)2011-08-051-4/+1
|
* Instead of moving the file to its final place when FlotsamCache writes to ↵Justin Clark-Casey (justincc)2011-08-051-2/+7
| | | | | | disk, copy it instead. This is to eliminate IOException where two threads compete to cache the same file.
* Fix Flotsam cache so it will use the disk cache if the memory cache is enabledRobert Adams2011-08-021-2/+2
|