dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4fb95cb
)
Merge "Reduce outages due to master DB problems in doViewUpdates"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 15 Apr 2015 00:41:05 +0000
(
00:41
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 15 Apr 2015 00:41:05 +0000
(
00:41
+0000)
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
8754fb9
..
059a3f8
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-1142,7
+1142,12
@@
class WikiPage implements Page, IDBAccessObject {
}
// Update newtalk / watchlist notification status
- $user->clearNotification( $this->mTitle, $oldid );
+ try {
+ $user->clearNotification( $this->mTitle, $oldid );
+ } catch ( DBError $e ) {
+ // Avoid outage if the master is not reachable
+ MWExceptionHandler::logException( $e );
+ }
}
/**