dns_db_abortupdate(dns_db_t *db, dns_rdatacallbacks_t *callbacks);
/*%<
* Abort the update to 'db'. Must be safe to double-call or call after
- * dns_db_commitupdate.
+ * dns_db_commitupdate. Must also be safe to call without having called
+ * dns_db_beginupdate first.
*
* Requires:
*
* So we need to commit *before* calling dns_zone_verifydb, and rely
* on closeversion to actually do cleanup.
*/
- dns_db_commitupdate(xfr->db, &callbacks);
+ CHECK(dns_db_commitupdate(xfr->db, &callbacks));
CHECK(dns_zone_verifydb(xfr->zone, xfr->db, xfr->ver));
* For the reason stated above, dns_db_abortupdate must *commit* the
* changes and rely on closeversion to clean them up.
*/
- dns_db_abortupdate(xfr->db, &callbacks);
+ (void)dns_db_abortupdate(xfr->db, &callbacks);
/* We need to end the transaction, but keep the previous error */
(void)ixfr_end_transaction(&xfr->ixfr);