Commit 4ef59f25 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1068] made sure Updater::committed_ is updated immediately after commit.

parent 3d069e27
......@@ -750,13 +750,12 @@ DatabaseUpdater::commit() {
<< db_name_);
}
accessor_->commitUpdateZone();
committed_ = true; // make sure the destructor won't trigger rollback
// We release the accessor immediately after commit is completed so that
// we don't hold the possible internal resource any longer.
accessor_.reset();
committed_ = true;
logger.debug(DBG_TRACE_DATA, DATASRC_DATABASE_UPDATER_COMMIT)
.arg(zone_name_).arg(zone_class_).arg(db_name_);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment