Glaisher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249767

Change subject: Use 'watchlist' query group in WatchedItem::load()
......................................................................

Use 'watchlist' query group in WatchedItem::load()

Change-Id: I6ef73ecfb93caeac1ef4a1ae8b7cc1e2df199934
---
M includes/WatchedItem.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/67/249767/1

diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php
index adee126..0144b6c 100644
--- a/includes/WatchedItem.php
+++ b/includes/WatchedItem.php
@@ -160,7 +160,7 @@
                # Pages and their talk pages are considered equivalent for 
watching;
                # remember that talk namespaces are numbered as page 
namespace+1.
 
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE, 'watchlist' );
                $row = $dbr->selectRow( 'watchlist', 'wl_notificationtimestamp',
                        $this->dbCond(), __METHOD__ );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/249767
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ef73ecfb93caeac1ef4a1ae8b7cc1e2df199934
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to