"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/libs/stats/BufferingStatsdDataFactory.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

BufferingStatsdDataFactory.php  (mediawiki-1.31.1):BufferingStatsdDataFactory.php  (mediawiki-1.32.0)
skipping to change at line 95 skipping to change at line 95
$entity->setMetric( $metric ); $entity->setMetric( $metric );
} }
// Don't bother buffering a counter update with a delta of zero. // Don't bother buffering a counter update with a delta of zero.
if ( !( $metric === StatsdDataInterface::STATSD_METRIC_COUNT && ! $value ) ) { if ( !( $metric === StatsdDataInterface::STATSD_METRIC_COUNT && ! $value ) ) {
$this->buffer[] = $entity; $this->buffer[] = $entity;
} }
return $entity; return $entity;
} }
/** /**
* @deprecated Use getData() * @deprecated since 1.30 Use getData() instead
* @return StatsdData[] * @return StatsdData[]
*/ */
public function getBuffer() { public function getBuffer() {
wfDeprecated( __METHOD__, '1.30' );
return $this->buffer; return $this->buffer;
} }
public function hasData() { public function hasData() {
return !empty( $this->buffer ); return !empty( $this->buffer );
} }
/**
* @since 1.30
* @return StatsdData[]
*/
public function getData() { public function getData() {
return $this->buffer; return $this->buffer;
} }
public function clearData() { public function clearData() {
$this->buffer = []; $this->buffer = [];
} }
public function getDataCount() { public function getDataCount() {
return count( $this->buffer ); return count( $this->buffer );
 End of changes. 3 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)