Changes between Version 29 and Version 30 of MapGuideRfc78


Ignore:
Timestamp:
Jul 22, 2009, 3:29:57 AM (15 years ago)
Author:
klain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc78

    v29 v30  
    123123catch(...)
    124124{
    125     tran.Rollback();
     125    if(nullptr != tran)
     126        tran.Rollback();
    126127}
    127128}}}
     
    131132As the transaction is a critical resource for database applications, a server-side transaction can be left open while the application is doing other things in between sql or even worse the application may fail or hang and the server would not know. So it needs to set a timeout for all transactions. If a transaction hasn't been committed or rollbacked within the timeout, the server will automatically rollback the transaction. If you call Commit() or Rollback() on the MgTransaction instance after timeout, an exception will be thrown reminding that the transaction has been timeout and reverted.
    132133
    133 Two items will be added into serverconfig.ini for transaction timeout setting. If the transaction hasn't been committed or rollbacked within 2 minutes, it will be automatically rollbacked.
     134Two items will be added into serverconfig.ini for transaction timeout setting. If the transaction hasn't been committed or rollbacked within 6 minutes, it will be automatically rollbacked.
    134135{{{
    135136DataTransactionTimeout             = 600