Index: trunk/phase3/includes/DifferenceEngine.php |
— | — | @@ -166,11 +166,12 @@ |
167 | 167 | $rcid = $this->mRcidMarkPatrolled; |
168 | 168 | } else { |
169 | 169 | // Look for an unpatrolled change corresponding to this diff |
| 170 | + $db = wfGetDB( DB_SLAVE ); |
170 | 171 | $change = RecentChange::newFromConds( |
171 | 172 | array( |
172 | 173 | // Add redundant timestamp condition so we can use the |
173 | 174 | // existing index |
174 | | - 'rc_timestamp' => $this->mNewRev->getTimestamp(), |
| 175 | + 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ), |
175 | 176 | 'rc_this_oldid' => $this->mNewid, |
176 | 177 | 'rc_last_oldid' => $this->mOldid, |
177 | 178 | 'rc_patrolled' => 0, |