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
Automatically detect READ_ONLY mode for MySQL/MariaDB
[lhc/web/wiklou.git]
/
includes
/
db
/
Database.php
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
2e3e225
..
3dc6e92
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-2456,6
+2456,10
@@
abstract class DatabaseBase implements IDatabase {
return false;
}
+ public function serverIsReadOnly() {
+ return false;
+ }
+
final public function onTransactionResolution( callable $callback ) {
if ( !$this->mTrxLevel ) {
throw new DBUnexpectedError( $this, "No transaction is active." );