mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[2524] Added commit and rollback trace messages
This commit is contained in:
@@ -1719,6 +1719,7 @@ MySqlLeaseMgr::getVersion() const {
|
||||
|
||||
void
|
||||
MySqlLeaseMgr::commit() {
|
||||
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE, DHCPSRV_MYSQL_COMMIT);
|
||||
if (mysql_commit(mysql_) != 0) {
|
||||
isc_throw(DbOperationError, "commit failed: " << mysql_error(mysql_));
|
||||
}
|
||||
@@ -1727,6 +1728,7 @@ MySqlLeaseMgr::commit() {
|
||||
|
||||
void
|
||||
MySqlLeaseMgr::rollback() {
|
||||
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE, DHCPSRV_MYSQL_ROLLBACK);
|
||||
if (mysql_rollback(mysql_) != 0) {
|
||||
isc_throw(DbOperationError, "rollback failed: " << mysql_error(mysql_));
|
||||
}
|
||||
|
Reference in New Issue
Block a user