Update to new generic DataPluginFactory calls.
parent
f1e71ca5e1
commit
1778f799ba
|
@ -272,7 +272,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_assetProvider = DataPluginFactory.LoadAssetDataPlugin("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
m_assetProvider = DataPluginFactory.LoadDataPlugin<IAssetDataPlugin>("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||||
if (m_assetProvider == null)
|
if (m_assetProvider == null)
|
||||||
{
|
{
|
||||||
Logger.Log.Error("[ASSET]: Failed to load a database plugin, server halting.");
|
Logger.Log.Error("[ASSET]: Failed to load a database plugin, server halting.");
|
||||||
|
|
|
@ -789,7 +789,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_inventoryProvider = DataPluginFactory.LoadInventoryDataPlugin("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
m_inventoryProvider = DataPluginFactory.LoadDataPlugin<IInventoryDataPlugin>("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||||
if (m_inventoryProvider == null)
|
if (m_inventoryProvider == null)
|
||||||
{
|
{
|
||||||
Logger.Log.Error("[INVENTORY]: Failed to load a database plugin, server halting.");
|
Logger.Log.Error("[INVENTORY]: Failed to load a database plugin, server halting.");
|
||||||
|
|
Loading…
Reference in New Issue