mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
a few changes on assets store and exists return
This commit is contained in:
@@ -187,9 +187,8 @@ namespace OpenSim.Services.AssetService
|
||||
|
||||
public virtual string Store(AssetBase asset)
|
||||
{
|
||||
bool exists = m_Database.AssetsExist(new[] { asset.FullID })[0];
|
||||
if (!exists)
|
||||
{
|
||||
bool[] assetsexist = m_Database.AssetsExist([ asset.FullID ] );
|
||||
if (assetsexist.Length == 0 || !assetsexist[0]) {
|
||||
// m_log.DebugFormat(
|
||||
// "[XASSET SERVICE]: Storing asset {0} {1}, bytes {2}", asset.Name, asset.FullID, asset.Data.Length);
|
||||
m_Database.StoreAsset(asset);
|
||||
|
||||
Reference in New Issue
Block a user