X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBViaLBRepo.php;h=55df1af03bcce52dd0ac345e445cc7b2da437e87;hb=6244b8c23a7c15be3d9de2130d290a2437bb6587;hp=a59ca34a048524e27a3b5e78a1cfdbd336f2d7e7;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignDBViaLBRepo.php b/includes/filerepo/ForeignDBViaLBRepo.php index a59ca34a04..55df1af03b 100644 --- a/includes/filerepo/ForeignDBViaLBRepo.php +++ b/includes/filerepo/ForeignDBViaLBRepo.php @@ -42,6 +42,9 @@ class ForeignDBViaLBRepo extends LocalRepo { /** @var array */ protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ]; + /** @var bool */ + protected $hasSharedCache; + /** * @param array|null $info */ @@ -63,7 +66,7 @@ class ForeignDBViaLBRepo extends LocalRepo { * @return IDatabase */ function getSlaveDB() { - return wfGetDB( DB_SLAVE, [], $this->wiki ); + return wfGetDB( DB_REPLICA, [], $this->wiki ); } /**