X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadStash.php;h=48477f8faae5b33bf2751e631af5e1df01948199;hb=aae0c8d42562d5d3f70cc18fa687ae331996b66f;hp=b7160b3ba83dc155160b2e3cd85ff05fcca586c6;hpb=53b3c5619d368ed08960eaaf7df5489f0e2700e0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index b7160b3ba8..48477f8faa 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -432,7 +432,7 @@ class UploadStash { . ' No user is logged in, files must belong to users' ); } - $dbr = $this->repo->getSlaveDB(); + $dbr = $this->repo->getReplicaDB(); $res = $dbr->select( 'uploadstash', 'us_key', @@ -511,7 +511,7 @@ class UploadStash { // sometimes reading from the master is necessary, if there's replication lag. $dbr = $this->repo->getMasterDB(); } else { - $dbr = $this->repo->getSlaveDB(); + $dbr = $this->repo->getReplicaDB(); } $row = $dbr->selectRow(