X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreDB.php;h=cac16b6a90a650b9b0f66de6dfa62faffea3ae3c;hb=d029197c7c5b083edef20fa79cc3e6d58e161f72;hp=4164505822a6b484320a1ddc817034ca1127b3fa;hpb=7c821908c4f2b69bfd913037ea9e49756624dc73;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreDB.php b/includes/externalstore/ExternalStoreDB.php index 4164505822..cac16b6a90 100644 --- a/includes/externalstore/ExternalStoreDB.php +++ b/includes/externalstore/ExternalStoreDB.php @@ -106,7 +106,9 @@ class ExternalStoreDB extends ExternalStoreMedium { } public function isReadOnly( $location ) { - return ( $this->getLoadBalancer( $location )->getReadOnlyReason() !== false ); + $lb = $this->getLoadBalancer( $location ); + $domainId = $this->getDomainId( $lb->getServerInfo( $lb->getWriterIndex() ) ); + return ( $lb->getReadOnlyReason( $domainId ) !== false ); } /**