fix (bug 30878)

fix
by
VG
(fixes bug 30878)

:

Make sure that XUpdate commands are run only once per document.
In case XUpdate command does not complete successfully, revert
all affected documents to the original state. This requires
buffering of modified documents - so XUpdate on large collection
might require lots of memory.
Thanks to Todd Byrne.