Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/226028
Change subject: Avoid logging query in wasDeletedSinceLastEdit() if the page still exists ...................................................................... Avoid logging query in wasDeletedSinceLastEdit() if the page still exists * This avoids hitting a long tail of logging table queries that cannot easily use the buffer pool all the time. Change-Id: Id2ad6b9699f1a8c579ebb1c3c0319183772af1bd --- M includes/EditPage.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/28/226028/1 diff --git a/includes/EditPage.php b/includes/EditPage.php index bf322ae..0233b11 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3445,7 +3445,7 @@ $this->deletedSinceEdit = false; - if ( $this->mTitle->isDeletedQuick() ) { + if ( !$this->mTitle->exists() && $this->mTitle->isDeletedQuick() ) { $this->lastDelete = $this->getLastDelete(); if ( $this->lastDelete ) { $deleteTime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp ); -- To view, visit https://gerrit.wikimedia.org/r/226028 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id2ad6b9699f1a8c579ebb1c3c0319183772af1bd Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits