diff options
author | Sean Dague | 2008-06-19 21:20:23 +0000 |
---|---|---|
committer | Sean Dague | 2008-06-19 21:20:23 +0000 |
commit | c2e2997a999ba5bdaa0b598b1286ee73cc14e372 (patch) | |
tree | c5771ea4b4599320b5574db5256cbfc742189808 /OpenSim/Data/NHibernate/NHibernateAssetData.cs | |
parent | Mantis#1572. Thank you kindly, Lulurun for a patch that addresses: (diff) | |
download | opensim-SC_OLD-c2e2997a999ba5bdaa0b598b1286ee73cc14e372.zip opensim-SC_OLD-c2e2997a999ba5bdaa0b598b1286ee73cc14e372.tar.gz opensim-SC_OLD-c2e2997a999ba5bdaa0b598b1286ee73cc14e372.tar.bz2 opensim-SC_OLD-c2e2997a999ba5bdaa0b598b1286ee73cc14e372.tar.xz |
more work towards nhibernate working with mysql, not there yet,
but moving in the right direction.
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateAssetData.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index 5c691a7..db77942 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs | |||
@@ -103,8 +103,9 @@ namespace OpenSim.Data.NHibernate | |||
103 | { | 103 | { |
104 | return session.Load(typeof(AssetBase), uuid) as AssetBase; | 104 | return session.Load(typeof(AssetBase), uuid) as AssetBase; |
105 | } | 105 | } |
106 | catch | 106 | catch (Exception e) |
107 | { | 107 | { |
108 | m_log.Error("[NHIBERNATE] issue loading asset", e); | ||
108 | return null; | 109 | return null; |
109 | } | 110 | } |
110 | } | 111 | } |
@@ -114,6 +115,7 @@ namespace OpenSim.Data.NHibernate | |||
114 | { | 115 | { |
115 | if (!ExistsAsset(asset.FullID)) | 116 | if (!ExistsAsset(asset.FullID)) |
116 | { | 117 | { |
118 | m_log.InfoFormat("[NHIBERNATE] inserting asset {0}", asset.FullID); | ||
117 | using (ISession session = factory.OpenSession()) | 119 | using (ISession session = factory.OpenSession()) |
118 | { | 120 | { |
119 | using (ITransaction transaction = session.BeginTransaction()) | 121 | using (ITransaction transaction = session.BeginTransaction()) |
@@ -155,7 +157,8 @@ namespace OpenSim.Data.NHibernate | |||
155 | 157 | ||
156 | override public bool ExistsAsset(LLUUID uuid) | 158 | override public bool ExistsAsset(LLUUID uuid) |
157 | { | 159 | { |
158 | return (FetchAsset(uuid) != null) ? true : false; | 160 | m_log.InfoFormat("[NHIBERNATE] ExistsAsset: {0}", uuid); |
161 | return (FetchAsset(uuid) != null); | ||
159 | } | 162 | } |
160 | 163 | ||
161 | public void DeleteAsset(LLUUID uuid) | 164 | public void DeleteAsset(LLUUID uuid) |