X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStorage%2FNameTableStore.php;h=ebce3da965d87db85c51b810109ba14cb9b51538;hb=46bdd1a491513d9a3d48bdb75c074e2e177c3b3f;hp=a1eba74851ded10680e52860bb714df6a4eedd4a;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/NameTableStore.php b/includes/Storage/NameTableStore.php index a1eba74851..ebce3da965 100644 --- a/includes/Storage/NameTableStore.php +++ b/includes/Storage/NameTableStore.php @@ -138,7 +138,7 @@ class NameTableStore { // RACE: $name was already in the db, probably just inserted, so load from master // Use DBO_TRX to avoid missing inserts due to other threads or REPEATABLE-READs $table = $this->loadTable( - $this->getDBConnection( DB_MASTER, LoadBalancer::CONN_TRX_AUTO ) + $this->getDBConnection( DB_MASTER, LoadBalancer::CONN_TRX_AUTOCOMMIT ) ); $searchResult = array_search( $name, $table, true ); if ( $searchResult === false ) { @@ -321,7 +321,8 @@ class NameTableStore { 'name' => $this->nameField ], [], - __METHOD__ + __METHOD__, + [ 'ORDER BY' => 'id' ] ); $assocArray = [];