1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-7674: ANALYZE shows r_rows=0

Change r_rows to be double
This commit is contained in:
Sergei Petrunia
2015-03-07 19:30:19 +03:00
parent 143f5d9172
commit 66ad265f3b
8 changed files with 142 additions and 66 deletions

View File

@@ -44,9 +44,9 @@ public:
bool has_scans() { return (r_scans != 0); }
ha_rows get_loops() { return r_scans; }
ha_rows get_avg_rows()
double get_avg_rows()
{
return r_scans ? (ha_rows)rint((double) r_rows / r_scans): 0;
return r_scans ? ((double)r_rows / r_scans): 0;
}
double get_filtered_after_where()