X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadStash.php;h=755f9fdf7b55d8a632f2a15f9103a75c937b3ca3;hb=41690888a2919b3fb89c715c364d21d8965c8b26;hp=b7160b3ba83dc155160b2e3cd85ff05fcca586c6;hpb=9c44be0eea12d6b89079bf43c27e7feeadf64ebe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index b7160b3ba8..755f9fdf7b 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -290,7 +290,6 @@ class UploadStash { } $this->fileMetadata[$key] = [ - 'us_id' => $dbw->nextSequenceValue( 'uploadstash_us_id_seq' ), 'us_user' => $this->userId, 'us_key' => $key, 'us_orig_path' => $path, @@ -432,7 +431,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 +510,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(