MySQLFSAssetData on store, if a asset already exists, assume its a valid store or regions will keep retry. The other DBs do replace the item, why doesn't FS do the same?

0.9.0-post-fixes
UbitUmarov 2016-09-27 21:10:01 +01:00
parent 58513fab8f
commit 9b2f186a8c
1 changed files with 7 additions and 1 deletions

View File

@ -222,6 +222,7 @@ namespace OpenSim.Data.MySQL
cmd.Parameters.AddWithValue("?name", meta.Name);
cmd.Parameters.AddWithValue("?description", meta.Description);
cmd.Parameters.AddWithValue("?type", meta.Type.ToString());
// cmd.Parameters.AddWithValue("?type", meta.Type);
cmd.Parameters.AddWithValue("?hash", hash);
cmd.Parameters.AddWithValue("?asset_flags", meta.Flags);
@ -239,7 +240,12 @@ namespace OpenSim.Data.MySQL
//ExecuteNonQuery(cmd);
}
return false;
// return false;
// if the asset already exits
// assume it was already correctly stored
// or regions will keep retry.
return true;
}
catch(Exception e)
{