File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 2
2
<PropertyGroup >
3
3
<VersionMajor Condition =" '$(VersionMajor)' == ''" >5</VersionMajor >
4
4
<VersionMinor Condition =" '$(VersionMinor)' == ''" >0</VersionMinor >
5
- <VersionPatch Condition =" '$(VersionPatch)' == ''" >2 </VersionPatch >
5
+ <VersionPatch Condition =" '$(VersionPatch)' == ''" >3 </VersionPatch >
6
6
<VersionSuffix Condition =" '$(VersionSuffix)' == ''" ></VersionSuffix >
7
7
8
8
<VersionPrefix >$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix >
Original file line number Diff line number Diff line change 30
30
31
31
<!-- This is used only for build folder -->
32
32
<!-- TODO: Either remove or refactor to use NHibernate.props -->
33
- <property name =" project.version" value =" 5.0.2 " overwrite =" false" />
34
- <property name =" project.version.numeric" value =" 5.0.2 " overwrite =" false" />
33
+ <property name =" project.version" value =" 5.0.3 " overwrite =" false" />
34
+ <property name =" project.version.numeric" value =" 5.0.3 " overwrite =" false" />
35
35
36
36
<!-- properties used to connect to database for testing -->
37
37
<include buildfile =" nhibernate-properties.xml" />
Original file line number Diff line number Diff line change 1
- Build 5.0.2
1
+ Build 5.0.3
2
+ =============================
3
+
4
+ Release notes - NHibernate - Version 5.0.3
5
+
6
+ ** Bug
7
+ * #1462 Fix disposing SessionIdLoggingContext if CheckAndUpdateSessionStatus is failed
8
+
9
+ Build 5.0.2
2
10
=============================
3
11
4
12
Release notes - NHibernate - Version 5.0.2
Original file line number Diff line number Diff line change @@ -314,17 +314,26 @@ public ProcessHelper(AbstractSessionImpl session)
314
314
{
315
315
_session = session ;
316
316
_context = new SessionIdLoggingContext ( session . SessionId ) ;
317
- session . CheckAndUpdateSessionStatus ( ) ;
318
- _session . _processing = true ;
317
+ try
318
+ {
319
+ _session . CheckAndUpdateSessionStatus ( ) ;
320
+ _session . _processing = true ;
321
+ }
322
+ catch
323
+ {
324
+ _context . Dispose ( ) ;
325
+ _context = null ;
326
+ throw ;
327
+ }
319
328
}
320
329
321
330
public void Dispose ( )
322
331
{
332
+ _context . Dispose ( ) ;
333
+ _context = null ;
323
334
if ( _session == null )
324
335
throw new ObjectDisposedException ( "The session process helper has been disposed already" ) ;
325
336
_session . _processing = false ;
326
- _context . Dispose ( ) ;
327
- _context = null ;
328
337
_session = null ;
329
338
}
330
339
}
You can’t perform that action at this time.
0 commit comments