mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[2541] Update in-code comment
This commit is contained in:
@@ -1397,11 +1397,8 @@ public:
|
|||||||
logger.info(DATASRC_DATABASE_UPDATER_ROLLBACK)
|
logger.info(DATASRC_DATABASE_UPDATER_ROLLBACK)
|
||||||
.arg(zone_name_).arg(zone_class_).arg(db_name_);
|
.arg(zone_name_).arg(zone_class_).arg(db_name_);
|
||||||
} catch (const DataSourceError& e) {
|
} catch (const DataSourceError& e) {
|
||||||
// We generally expect that rollback always succeeds, and
|
// See The destructor ~TransactionHolder() for the
|
||||||
// it should in fact succeed in a way we execute it. But
|
// reason to catch this.
|
||||||
// as the public API allows rollback() to fail and
|
|
||||||
// throw, we should expect it. Obviously we cannot re-throw
|
|
||||||
// it. The best we can do is to log it as a critical error.
|
|
||||||
logger.error(DATASRC_DATABASE_UPDATER_ROLLBACKFAIL)
|
logger.error(DATASRC_DATABASE_UPDATER_ROLLBACKFAIL)
|
||||||
.arg(zone_name_).arg(zone_class_).arg(db_name_)
|
.arg(zone_name_).arg(zone_class_).arg(db_name_)
|
||||||
.arg(e.what());
|
.arg(e.what());
|
||||||
|
Reference in New Issue
Block a user