aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/moment/locale/lo.js
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2025-04-07 17:36:35 +1000
committerTim Starling <tstarling@wikimedia.org>2025-04-07 19:23:27 +1000
commit2b65587e4d92e7f27661e8821b14f74ade939cfa (patch)
treed5e0f26043705c0a11dfa844d909ea47c2292fbf /resources/lib/moment/locale/lo.js
parenta110d43c402cef9f393d3e35fc510f8124460006 (diff)
downloadmediawikicore-2b65587e4d92e7f27661e8821b14f74ade939cfa.tar.gz
mediawikicore-2b65587e4d92e7f27661e8821b14f74ade939cfa.zip
block: Fix DBS::acquireTarget() race using GET_LOCK()
A crude solution for the acquireTarget() race condition. Use SQL GET_LOCK() to lock the target from the acquireTarget() call until the transaction is committed. Add FOR UPDATE to the acquireTarget() SELECT, otherwise it just sees the snapshot version of the row and inserts a new row anyway. Add a test which reliably failed prior to the change. Reword the ipb-block-not-found message. This is normal for simultaneous blocks of the same target. Don't contact us. In the API, remap it to "alreadyblocked". Bug: T389028 Change-Id: I1fa35bf08d456a93930194786f77df389217ba61
Diffstat (limited to 'resources/lib/moment/locale/lo.js')
0 files changed, 0 insertions, 0 deletions