From: addshore Date: Tue, 19 Dec 2017 14:58:06 +0000 (+0000) Subject: [MCR] Fix SqlBlobStore using DB_REPLICA for writes X-Git-Tag: 1.31.0-rc.0~1164^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=a10315f2fcef3bc8023d7e3c74a3ac4e3a490cde;p=lhc%2Fweb%2Fwiklou.git [MCR] Fix SqlBlobStore using DB_REPLICA for writes Bug: T183242 Bug: T183245 Bug: T183252 Change-Id: Ic0b9910b5de5ce6817d6a4a3e5e32103e2113926 --- diff --git a/includes/Storage/SqlBlobStore.php b/includes/Storage/SqlBlobStore.php index 0714633285..fcdc1b908c 100644 --- a/includes/Storage/SqlBlobStore.php +++ b/includes/Storage/SqlBlobStore.php @@ -228,7 +228,7 @@ class SqlBlobStore implements IDBAccessObject, BlobStore { // used. We'll need to assess expected fallout before doing that. } - $dbw = $this->getDBConnection( DB_REPLICA ); + $dbw = $this->getDBConnection( DB_MASTER ); $old_id = $dbw->nextSequenceValue( 'text_old_id_seq' ); $dbw->insert(