change asset description max size

This commit is contained in:
UbitUmarov
2016-11-22 01:34:07 +00:00
parent 8c19ea910a
commit 7524c7729f
5 changed files with 37 additions and 17 deletions

View File

@@ -214,12 +214,12 @@ namespace OpenSim.Data.MySQL
}
string assetDescription = asset.Description;
if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
if(assetDescription.Length > AssetBase.MAX_LMASSET_DESC)
{
assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
m_log.WarnFormat(
"[XASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add",
asset.Description, asset.ID, asset.Description.Length, assetDescription.Length);
if(asset.Type == (sbyte) AssetType.Landmark)
assetDescription = assetDescription.Substring(0, AssetBase.MAX_LMASSET_DESC);
else
assetDescription = assetDescription.Substring(0, AssetBase.MAX_ASSET_DESC);
}
if (m_enableCompression)