use other filename then compress

master
Christopher 2020-06-10 16:04:20 +02:00
parent 6b1b104e1d
commit 295bc4cbeb
1 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,10 @@ namespace OpenSim.Modules.DataValue
string _storageKey = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(ASCIIEncoding.ASCII.GetBytes(index.Trim().ToUpper()))).Replace("-", ""); string _storageKey = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(ASCIIEncoding.ASCII.GetBytes(index.Trim().ToUpper()))).Replace("-", "");
return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".gz"; if(m_enabledCompress)
return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".gz";
return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".txt";
} }
return null; return null;