Chad has uploaded a new change for review.

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

Change subject: Fix profiling error
......................................................................

Fix profiling error

Start profiling where it actually matters

Change-Id: I85fff08f937abb3f8a42949fb97e29032b961b86
---
M includes/Updater.php
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/85/112185/1

diff --git a/includes/Updater.php b/includes/Updater.php
index b6a10e7..8e2eb6d 100644
--- a/includes/Updater.php
+++ b/includes/Updater.php
@@ -228,13 +228,12 @@
         *   Elasticsearch's time format.
         */
        private function sendDocuments( $indexType, $documents, $shardTimeout ) 
{
-               wfProfileIn( __METHOD__ );
-
                $documentCount = count( $documents );
                if ( $documentCount === 0 ) {
                        return;
                }
 
+               wfProfileIn( __METHOD__ );
                $exception = null;
                try {
                        $pageType = Connection::getPageType( wfWikiId(), 
$indexType );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85fff08f937abb3f8a42949fb97e29032b961b86
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

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

Reply via email to