mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +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->_conn->beginTransaction();
|
||||||
}
|
}
|
||||||
$this->_intransaction++;
|
$this->_intransaction++;
|
||||||
|
if($this->_logfp) {
|
||||||
|
fwrite($this->_logfp, microtime()." START ".$htis->_intransaction."\n");
|
||||||
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function rollbackTransaction() { /* {{{ */
|
function rollbackTransaction() { /* {{{ */
|
||||||
|
if($this->_logfp) {
|
||||||
|
fwrite($this->_logfp, microtime()." ROLLBACK ".$htis->_intransaction."\n");
|
||||||
|
}
|
||||||
if($this->_intransaction == 1) {
|
if($this->_intransaction == 1) {
|
||||||
$this->_conn->rollBack();
|
$this->_conn->rollBack();
|
||||||
}
|
}
|
||||||
|
@ -457,6 +463,9 @@ class SeedDMS_Core_DatabaseAccess {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function commitTransaction() { /* {{{ */
|
function commitTransaction() { /* {{{ */
|
||||||
|
if($this->_logfp) {
|
||||||
|
fwrite($this->_logfp, microtime()." COMMIT ".$htis->_intransaction."\n");
|
||||||
|
}
|
||||||
if($this->_intransaction == 1) {
|
if($this->_intransaction == 1) {
|
||||||
$this->_conn->commit();
|
$this->_conn->commit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user