From 27bdd6aa26843aeac89f635ed495996088d8e8aa Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 18 Jan 2013 14:24:38 +0100 Subject: [PATCH] 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. --- index/mod_dom.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 1.7.10.4