From 5dee7c5b437d78c9869dc6f2e06ee7d8d5eec4bd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 24 Jan 2009 18:37:52 +0000 Subject: [PATCH] Avoid slave lag on $title->getLatestRevID() --- includes/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 3d74a3d048..a2d4baef0a 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -400,7 +400,7 @@ class EmailNotification { $this->compose( $user ); } - $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID() ); + $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID(GAID_FOR_UPDATE) ); // Do not update watchlists if something else already did. if ( $timestamp >= $latestTimestamp && ($wgShowUpdatedMarker || $wgEnotifWatchlist) ) { # Mark the changed watch-listed page with a timestamp, so that the page is -- 2.20.1