diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateAssetData.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index f4527bf..f8715cc 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs | |||
@@ -45,7 +45,8 @@ namespace OpenSim.Data.NHibernate | |||
45 | 45 | ||
46 | public override void Initialise() | 46 | public override void Initialise() |
47 | { | 47 | { |
48 | Initialise("SQLiteDialect;SqliteClientDriver;URI=file:Asset.db,version=3"); | 48 | m_log.Info("[NHibernateGridData]: " + Name + " cannot be default-initialized!"); |
49 | throw new PluginNotInitialisedException(Name); | ||
49 | } | 50 | } |
50 | 51 | ||
51 | public override void Initialise(string connect) | 52 | public override void Initialise(string connect) |
@@ -66,7 +67,7 @@ namespace OpenSim.Data.NHibernate | |||
66 | AssetBase temp = (AssetBase)manager.Load(typeof(AssetBase), asset.Metadata.FullID); | 67 | AssetBase temp = (AssetBase)manager.Load(typeof(AssetBase), asset.Metadata.FullID); |
67 | if (temp == null) | 68 | if (temp == null) |
68 | { | 69 | { |
69 | manager.Save(asset); | 70 | manager.Insert(asset); |
70 | } | 71 | } |
71 | } | 72 | } |
72 | 73 | ||