From a10315f2fcef3bc8023d7e3c74a3ac4e3a490cde Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 19 Dec 2017 14:58:06 +0000 Subject: [PATCH] [MCR] Fix SqlBlobStore using DB_REPLICA for writes Bug: T183242 Bug: T183245 Bug: T183252 Change-Id: Ic0b9910b5de5ce6817d6a4a3e5e32103e2113926 --- includes/Storage/SqlBlobStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.20.1