diff options
Diffstat (limited to 'includes/filerepo/ForeignDBViaLBRepo.php')
-rw-r--r-- | includes/filerepo/ForeignDBViaLBRepo.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/filerepo/ForeignDBViaLBRepo.php b/includes/filerepo/ForeignDBViaLBRepo.php index 8153ffb4..f49b716f 100644 --- a/includes/filerepo/ForeignDBViaLBRepo.php +++ b/includes/filerepo/ForeignDBViaLBRepo.php @@ -66,6 +66,16 @@ class ForeignDBViaLBRepo extends LocalRepo { return wfGetDB( DB_SLAVE, array(), $this->wiki ); } + /** + * @return Closure + */ + protected function getDBFactory() { + $wiki = $this->wiki; + return function( $index ) use ( $wiki ) { + return wfGetDB( $index, array(), $wiki ); + }; + } + function hasSharedCache() { return $this->hasSharedCache; } |