SPRNET-1567 Assigning correct timeout
SPRNET-1567 HibernateTransactionManager assign incorrect connection timeout Now assigning the correct timeout to the correct property
This commit is contained in:
@@ -436,7 +436,7 @@ namespace Spring.Data.NHibernate
|
||||
ConnectionHolder conHolder = new ConnectionHolder(con, adoTx);
|
||||
if (timeout != DefaultTransactionDefinition.TIMEOUT_DEFAULT)
|
||||
{
|
||||
conHolder.TimeoutInMillis = definition.TransactionTimeout;
|
||||
conHolder.TimeoutInSeconds = timeout;
|
||||
}
|
||||
if (log.IsDebugEnabled)
|
||||
{
|
||||
|
||||
@@ -454,7 +454,7 @@ namespace Spring.Data.NHibernate
|
||||
ConnectionHolder conHolder = new ConnectionHolder(con, adoTx);
|
||||
if (timeout != DefaultTransactionDefinition.TIMEOUT_DEFAULT)
|
||||
{
|
||||
conHolder.TimeoutInMillis = definition.TransactionTimeout;
|
||||
conHolder.TimeoutInSeconds = timeout;
|
||||
}
|
||||
if (log.IsDebugEnabled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user