mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* remove unused CommitAssets() hook for now
This commit is contained in:
@@ -50,7 +50,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
protected IAssetLoader assetLoader = new AssetLoaderFileSystem();
|
||||
|
||||
protected abstract void StoreAsset(AssetBase asset);
|
||||
protected abstract void CommitAssets();
|
||||
|
||||
/// <summary>
|
||||
/// This method must be implemented by a subclass to retrieve the asset named in the
|
||||
@@ -108,8 +107,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
m_log.Info("[ASSET SERVER]: Setting up asset database");
|
||||
|
||||
assetLoader.ForEachDefaultXmlAsset(StoreAsset);
|
||||
|
||||
CommitAssets();
|
||||
}
|
||||
|
||||
public AssetServerBase()
|
||||
@@ -167,7 +164,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
lock (m_syncLock)
|
||||
{
|
||||
m_assetProvider.UpdateAsset(asset);
|
||||
m_assetProvider.CommitAssets();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +172,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
lock (m_syncLock)
|
||||
{
|
||||
StoreAsset(asset);
|
||||
CommitAssets();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,10 +106,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
}
|
||||
}
|
||||
|
||||
protected override void CommitAssets()
|
||||
{
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
throw new Exception("The method or operation is not implemented.");
|
||||
|
||||
@@ -74,8 +74,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
public override void Close()
|
||||
{
|
||||
base.Close();
|
||||
|
||||
m_assetProvider.CommitAssets();
|
||||
}
|
||||
|
||||
protected override AssetBase GetAsset(AssetRequest req)
|
||||
@@ -93,10 +91,5 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
{
|
||||
m_assetProvider.CreateAsset(asset);
|
||||
}
|
||||
|
||||
protected override void CommitAssets()
|
||||
{
|
||||
m_assetProvider.CommitAssets();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace OpenSim.Framework
|
||||
void CreateAsset(AssetBase asset);
|
||||
void UpdateAsset(AssetBase asset);
|
||||
bool ExistsAsset(LLUUID uuid);
|
||||
void CommitAssets(); // force a sync to the database
|
||||
void Initialise(string connect);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user