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:
7227c7e
)
put watchlist update in its own transaction, to reduce lock contention and thus incre...
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 21 Aug 2005 06:09:56 +0000
(06:09 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 21 Aug 2005 06:09:56 +0000
(06:09 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
a99e733
..
d58b48a
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1273,10
+1273,18
@@
class Article {
if ( $good ) {
if ($watchthis) {
- if (!$this->mTitle->userIsWatching()) $this->watch();
+ if (!$this->mTitle->userIsWatching()) {
+ $dbw->immediateCommit();
+ $dbw->begin();
+ $this->watch();
+ $dbw->commit();
+ }
} else {
if ( $this->mTitle->userIsWatching() ) {
+ $dbw->immediateCommit();
+ $dbw->begin();
$this->unwatch();
+ $dbw->commit();
}
}
# standard deferred updates