Changeset 2b04ed7616629481e40b0b4d6cdc9d9f16f9edbe

Show
Ignore:
Timestamp:
01/11/10 19:13:22 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1263237202 +0000
git-parent:

[33756c85dc11cfd7fffd7acff7e4a3a2196fdc65]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1263237202 +0000
Message:

only offer row count when successful, fixes #228

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/mysql.c

    rf1f93ff r2b04ed7  
    104104  } 
    105105 
    106   noit_stats_set_metric(&current, "row_count", METRIC_INT32, &ci->rv); 
     106  if(ci->rv >= 0) 
     107    noit_stats_set_metric(&current, "row_count", METRIC_INT32, &ci->rv); 
    107108 
    108109  if(ci->rv > 0) {