Skip to content
Snippets Groups Projects
Commit 21011baf authored by Daniel Salzman's avatar Daniel Salzman
Browse files

fixup! catalog: implement member transfer btwn catalogs, refactoring

parent 3d159726
1 merge request!1247Draft: Catalog transfer
Pipeline #76649 passed with stages
in 13 minutes and 47 seconds
......@@ -551,6 +551,8 @@ static bool upd_cancel_out(catalog_upd_val_t **p_orig, const knot_dname_t *new_o
int new_bail, catalog_upd_type_t new_type)
{
catalog_upd_val_t *orig = *p_orig;
assert(orig->type == MEMB_UPD_ADD || orig->type == MEMB_UPD_REM);
if (knot_dname_is_equal(orig->owner, new_owner) &&
orig->catzone - orig->owner == new_bail &&
orig->type != new_type) {
......@@ -1000,7 +1002,7 @@ int catalog_update_commit(catalog_update_t *u, catalog_t *cat)
if (ret == KNOT_EOK) {
ret = catalog_commit(cat);
}
return KNOT_EOK;
return ret;
}
static void print_dname(const knot_dname_t *d)
......
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