Seeing {closure} in the logs as caller is not helpful
Change-Id: Idbf6ac9606d0f75cae452afffe133c5e3973f334
# Defer purges, page creation, and link updates in case they error out.
# The most important thing is that files and the DB registry stay synced.
$dbw->endAtomic( __METHOD__ );
# Defer purges, page creation, and link updates in case they error out.
# The most important thing is that files and the DB registry stay synced.
$dbw->endAtomic( __METHOD__ );
# Do some cache purges after final commit so that:
# a) Changes are more likely to be seen post-purge
# Do some cache purges after final commit so that:
# a) Changes are more likely to be seen post-purge
__METHOD__,
function () use (
$reupload, $wikiPage, $newPageContent, $comment, $user,
__METHOD__,
function () use (
$reupload, $wikiPage, $newPageContent, $comment, $user,
- $logEntry, $logId, $descId, $tags
+ $logEntry, $logId, $descId, $tags, $fname
) {
# Update memcache after the commit
$this->invalidateCache();
) {
# Update memcache after the commit
$this->invalidateCache();
'logging',
$update,
[ 'log_id' => $logId ],
'logging',
$update,
[ 'log_id' => $logId ],
);
$this->getRepo()->getMasterDB()->insert(
'log_search',
);
$this->getRepo()->getMasterDB()->insert(
'log_search',
'ls_value' => $logEntry->getAssociatedRevId(),
'ls_log_id' => $logId,
],
'ls_value' => $logEntry->getAssociatedRevId(),
'ls_log_id' => $logId,
],
);
# Add change tags, if any
);
# Add change tags, if any