mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
log transactions
This commit is contained in:
parent
d72422eb36
commit
6233ac59ff
|
@ -447,9 +447,15 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
$this->_conn->beginTransaction();
|
||||
}
|
||||
$this->_intransaction++;
|
||||
if($this->_logfp) {
|
||||
fwrite($this->_logfp, microtime()." START ".$htis->_intransaction."\n");
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
function rollbackTransaction() { /* {{{ */
|
||||
if($this->_logfp) {
|
||||
fwrite($this->_logfp, microtime()." ROLLBACK ".$htis->_intransaction."\n");
|
||||
}
|
||||
if($this->_intransaction == 1) {
|
||||
$this->_conn->rollBack();
|
||||
}
|
||||
|
@ -457,6 +463,9 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
} /* }}} */
|
||||
|
||||
function commitTransaction() { /* {{{ */
|
||||
if($this->_logfp) {
|
||||
fwrite($this->_logfp, microtime()." COMMIT ".$htis->_intransaction."\n");
|
||||
}
|
||||
if($this->_intransaction == 1) {
|
||||
$this->_conn->commit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user