From: Adam Dickmeiss Date: Fri, 18 Jan 2013 13:24:38 +0000 (+0100) Subject: dom: accept type="adelete" (accept bad deletes) X-Git-Tag: v2.0.54~6 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=27bdd6aa26843aeac89f635ed495996088d8e8aa;ds=sidebyside dom: accept type="adelete" (accept bad deletes) It's like type="delete" but if a record does not already exist it is not treated as an error. --- diff --git a/index/mod_dom.c b/index/mod_dom.c index 2e65b89..90b3c56 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -946,6 +946,8 @@ static void set_record_info(struct filter_info *tinfo, action = action_replace; else if (!strcmp(type_p, "update")) action = action_update; + else if (!strcmp(type_p, "adelete")) + action = action_a_delete; else dom_log(YLOG_WARN, tinfo, node, "bad @type value: %s", type_p); extctr->action = action;