HomePhabricator

Add ScopedCallback::newScopedIgnoreUserAbort helper function
d3b113475de9Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Add ScopedCallback::newScopedIgnoreUserAbort helper function

It sets ignore_user_abort( true ) for non-CLI requests until the callback
is triggered for scenarios where you don't want to be interrupted.

This was previously implemented in 3 different places in MediaWiki:

  • FileBackend::getScopedPHPBehaviorForOps()
  • LBFactory::getScopedPHPBehaviorForCommit()
  • LoadBalancer::getScopedPHPBehaviorForCommit()

Bug: T184044
Change-Id: Ib6e307d76f9328c11d2bed3617552ddc78124665

Details

Provenance
StibbaAuthored on Oct 29 2018, 8:39 PM
LegoktmCommitted on Oct 30 2018, 11:41 PM
Parents
R1984:425b47e43404: build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Branches
Unknown
Tags
Unknown
ChangeId
Ib6e307d76f9328c11d2bed3617552ddc78124665