From 43b83ea19ead917cac2778a0fd0a2f915805bf1b Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 7 Feb 2013 20:52:28 +0100 Subject: [PATCH] MDL-37893 Always notify pending starts before dispatching chunk --- .../xml/parser/processors/grouped_parser_processor.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backup/util/xml/parser/processors/grouped_parser_processor.class.php b/backup/util/xml/parser/processors/grouped_parser_processor.class.php index 2989d26660b..48782b7540b 100644 --- a/backup/util/xml/parser/processors/grouped_parser_processor.class.php +++ b/backup/util/xml/parser/processors/grouped_parser_processor.class.php @@ -104,7 +104,10 @@ abstract class grouped_parser_processor extends simplified_parser_processor { // currentdata, properly built $data = $this->currentdata[$path]; unset($this->currentdata[$path]); + // Always, before dispatching any chunk, send all pending start notifications. + $this->process_pending_startend_notifications($path, 'start'); // TODO: If running under DEBUG_DEVELOPER notice about >1MB grouped chunks + // And, finally, dispatch it. $this->dispatch_chunk($data); } // Normal notification of path end -- 2.43.0