Browse Source

add a IAssetProvider.CommitAssets() call to the grid asset server, when a asset is uploaded to it. Don't think the MySql provider needs this call but the Sql provider does else the assets don't get written out to the database file.

MW 16 years ago
parent
commit
d34ee746e7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      OpenSim/Grid/AssetServer/RestService.cs

+ 1 - 0
OpenSim/Grid/AssetServer/RestService.cs

@@ -96,6 +96,7 @@ namespace OpenSim.Grid.AssetServer
 
             MainLog.Instance.Verbose("REST", "StoreAndCommitAsset {0}", asset.FullID);
             m_assetProvider.CreateAsset(asset);
+            m_assetProvider.CommitAssets();
 
             return new byte[] {};
         }