Revert "Measure commitMasterChanges() run time"
authorOri.livneh <ori@wikimedia.org>
Tue, 12 Apr 2016 18:48:25 +0000 (18:48 +0000)
committerOri.livneh <ori@wikimedia.org>
Tue, 12 Apr 2016 19:20:01 +0000 (19:20 +0000)
This reverts commit efb441883937. This is the biggest metric
by statsd traffic volume on the Wikimedia cluster. Please re-introduce this
only with sampling.

Bug: T101141
Change-Id: I7bc3b3aaa98dcefe1a80a4f458a83232c29a27ea

includes/db/loadbalancer/LBFactory.php

index a484bb4..f39596b 100644 (file)
@@ -247,11 +247,7 @@ abstract class LBFactory {
                        } );
                } );
 
-               $start = microtime( true );
                $this->forEachLBCallMethod( 'commitMasterChanges', [ $fname ] );
-               $timeMs = 1000 * ( microtime( true ) - $start );
-
-               RequestContext::getMain()->getStats()->timing( "db.commit-masters", $timeMs );
        }
 
        /**