Changes between Version 29 and Version 30 of MapGuideRfc78
- Timestamp:
- 07/22/09 03:29:57 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc78
v29 v30 123 123 catch(...) 124 124 { 125 tran.Rollback(); 125 if(nullptr != tran) 126 tran.Rollback(); 126 127 } 127 128 }}} … … 131 132 As 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. 132 133 133 Two items will be added into serverconfig.ini for transaction timeout setting. If the transaction hasn't been committed or rollbacked within 2minutes, it will be automatically rollbacked.134 Two 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. 134 135 {{{ 135 136 DataTransactionTimeout = 600