[MCR] Fix SqlBlobStore using DB_REPLICA for writes
authoraddshore <addshorewiki@gmail.com>
Tue, 19 Dec 2017 14:58:06 +0000 (14:58 +0000)
committeraddshore <addshorewiki@gmail.com>
Tue, 19 Dec 2017 14:58:06 +0000 (14:58 +0000)
Bug: T183242
Bug: T183245
Bug: T183252
Change-Id: Ic0b9910b5de5ce6817d6a4a3e5e32103e2113926

includes/Storage/SqlBlobStore.php

index 0714633..fcdc1b9 100644 (file)
@@ -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(