Skip to content

Commit fe22b8b

Browse files
committed
Refactor: libcib: Call xml_apply_patchset() in cib_apply_patch_event()
...directly, instead of calling cib__process_apply_patch(). This will make an upcoming commit simpler. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 8f600af commit fe22b8b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/cib/cib_utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,7 @@ cib_apply_patch_event(xmlNode *event, xmlNode *input, xmlNode **output,
891891
*output = pcmk__xml_copy(NULL, input);
892892
}
893893

894-
rc = cib__process_apply_patch(event, diff, output, NULL);
895-
rc = pcmk_rc2legacy(rc);
894+
rc = xml_apply_patchset(*output, diff, true);
896895
if (rc == pcmk_ok) {
897896
return pcmk_ok;
898897
}

0 commit comments

Comments
 (0)