Skip to content

Commit

Permalink
JENA-1521: Only really close if non-transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Apr 13, 2018
1 parent 246786a commit 67b18af
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -290,14 +290,12 @@ public String toString() {
protected void _close() {
if ( isClosed )
return ;
isClosed = true ;

if ( sConn.haveUsedInTransaction() ) {
if ( isInTransaction() ) {
TDB.logInfo.warn("Attempt to close a DatasetGraphTransaction while a transaction is active - ignored close (" + getLocation() + ")") ;
return ;
}
// Otherwise ignore - there might be other transactions aronud.
// Otherwise ignore - close() while transactional is meaningless.
return ;
}
synchronized(this) {
Expand Down

0 comments on commit 67b18af

Please sign in to comment.