Some extension code appears to have sanity commit() calls
to work around this in places, which is the wrong solution.
Note that there was always the post-send commit, just not
the pre-send one that normal requests have.
Change-Id: I410a1f1097daa4f43481d1b0afbe7f467b86d254
$result = new AjaxResponse( $result );
}
+ // Make sure DB commit succeeds before sending a response
+ wfGetLBFactory()->commitMasterChanges( __METHOD__ );
+
$result->sendHeaders();
$result->printText();