dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add ExternalStoreMedium::isReadOnly() method
[lhc/web/wiklou.git]
/
includes
/
externalstore
/
ExternalStoreDB.php
diff --git
a/includes/externalstore/ExternalStoreDB.php
b/includes/externalstore/ExternalStoreDB.php
index
e5d36e1
..
b43bd21
100644
(file)
--- a/
includes/externalstore/ExternalStoreDB.php
+++ b/
includes/externalstore/ExternalStoreDB.php
@@
-103,6
+103,10
@@
class ExternalStoreDB extends ExternalStoreMedium {
return "DB://$location/$id";
}
+ public function isReadOnly( $location ) {
+ return ( $this->getLoadBalancer( $location )->getReadOnlyReason() !== false );
+ }
+
/**
* Get a LoadBalancer for the specified cluster
*