wiki.techinc.nl/includes/libs
alex4401 6ecb7a4272 rdbms: Fix GTID style detection for MySQL servers
WHAT:
- Return the GTID style from `MySQLPrimaryPos::parseGTID`, which already identifies the style during parse.
- Rely on `parseGTID`'s detection in `MySQLPrimaryPos::init`.

WHY:
- When GTID-based replication is enabled and MySQL is used for the database, MediaWiki misidentifies the engine as MariaDB.
- This causes position waits to fail with "No active GTIDs in $1 share a domain with those in $1".
- This is a regression caused by I232274feb12c0ce4826be2c46a35315b425f6673:
  - Before that change, parseGTID returned the domain ID as an integer for MariaDB and as a string for MySQL.
  - The `init` method used this fact (`is_int`) when determining the GTID style.
  - After the change, parseGTID always returns the domain ID as a string.
  - The check in `init` was incorrectly updated to expect a string for MariaDB, but did not account for MySQL's source ID also being a string.

Change-Id: I4951e7967a45bae10d26b06ee236a55279fa8fb9
(cherry picked from commit 54154c87c084543fd659f24ae6b4c276184259cc)
2025-07-18 20:46:50 +00:00
..
composer
DebugInfo Replace gettype() with get_debug_type() in debug/log/test output 2024-07-31 19:33:57 +02:00
Diff
eventrelayer
filebackend Drop a few phan PhanImpossibleTypeComparison suppressions now we've dropped PHP 7.4 2025-06-18 10:54:01 +01:00
http http: Handle accept header with incomplete q 2025-04-23 23:16:22 +00:00
iterators Use type declaration for class properties holding type hinted arguments 2024-09-11 20:08:50 +00:00
lockmanager objectcache: Move RedisConnRef.php to /libs/objectcache/ 2024-11-07 08:40:54 +00:00
Message Message: Downgrade exception on bool/null param to warning 2024-11-02 12:18:56 +00:00
mime mime: Add mime types for *.less 2025-07-16 10:58:47 +00:00
objectcache objectcache: Remove docs about RedisConnectionPool configurable size 2024-11-07 08:43:27 +00:00
ParamValidator Localisation updates from https://translatewiki.net. 2025-06-24 07:33:27 +02:00
rdbms rdbms: Fix GTID style detection for MySQL servers 2025-07-18 20:46:50 +00:00
Stats Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
telemetry Introduce minimal OTEL tracing library 2024-10-09 15:55:31 +02:00
uuid GlobalIdGenerator: Update str_getcsv() call for PHP 8.4 2024-10-29 15:17:13 +00:00
WRStats RateLimiter: Fix peek mode 2025-03-01 15:51:16 +00:00
ArrayUtils.php
Cookie.php Remove unchecked exception annotations 2024-09-17 22:20:58 +02:00
CookieJar.php
Deflate.php
DnsSrvDiscoverer.php
Emptiable.php
ExplodeIterator.php
GhostFieldAccessTrait.php Serialization test cases: fix filename after ParserOutput namespacing 2024-05-17 17:07:47 -04:00
HashRing.php Remove unchecked exception annotations 2024-09-17 22:20:58 +02:00
HtmlArmor.php
HttpStatus.php
MapCacheLRU.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
MappedIterator.php libs: Add missing documentation to class properties 2024-09-13 17:24:12 +00:00
MemoizedCallable.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
MWCryptHash.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
NonSerializableTrait.php
README
ReplacementArray.php Use type declaration for class properties holding type hinted arguments 2024-09-11 20:08:50 +00:00
ReverseArrayIterator.php
RiffExtractor.php
StaticArrayWriter.php
StatusValue.php Make Message and MessageValue compatible 2024-10-19 15:00:07 +02:00
StringUtils.php Remove unchecked exception annotations 2024-09-17 22:20:58 +02:00
Timing.php
UDPTransport.php Remove unchecked exception annotations 2024-09-17 22:20:58 +02:00
UnpackFailedException.php
XhprofData.php

The classes in this directory ./includes/libs are considered standalone
from the remainder of the MediaWiki codebase. They do not call on any other
portions of MediaWiki code, and can be used in other projects without
dependency issues.