dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
412dee7
)
Reduce outages due to master DB problems in doViewUpdates
author
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 13 Apr 2015 23:50:34 +0000
(16:50 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 Apr 2015 17:19:50 +0000
(17:19 +0000)
Change-Id: Ie28e8dcfc3bc402b3119d9cf43612acab2af1004
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
6242a54
..
37a01d4
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 );
+ }
}
/**