Salvage site_stats row with negative values in miser mode
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 14 Feb 2018 23:23:42 +0000 (15:23 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 14 Feb 2018 23:37:55 +0000 (15:37 -0800)
commit6535091de23982b0a31642005d47f13b8e554b66
tree3e20b149d67dcd565e581794eda6c3463812afbc
parent09a1f4776eb7a73ccdf28b7b9ecec4e3d97f7756
Salvage site_stats row with negative values in miser mode

* Instead of returning all zeroes, just use zero for the
  negative values in the row.
* Allow large numbers since the fields are BIGINT.
* Clean up the return types to truly be integers.
* Respect the $groups argument in SiteStatsInit::getDB().

Bug: T186947
Change-Id: I51fdc45124c12aba114540fc0ec66a3e63d61e09
includes/SiteStats.php
includes/SiteStatsInit.php