]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: Incorrect expression in PGMap::get_health()
authorJos Collin <jcollin@redhat.com>
Tue, 13 Jun 2017 02:54:17 +0000 (08:24 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 13 Jun 2017 02:54:23 +0000 (08:24 +0530)
Fixes:

CID 1412575:  Incorrect expression  (COPY_PASTE_ERROR)
ceph/src/mon/PGMap.cc: 2764 in PGMap::get_health()
"num_err" in "ss2 << num_err" looks like a copy-paste error.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/mon/PGMap.cc

index 7d56571e4a0fa4cb2f66a9f28a678c4118a1afa7..9fdfb9ce9e1039dd983a89fa4bae914979423c0e 100644 (file)
@@ -2764,7 +2764,7 @@ void PGMap::get_health(
        }
        if (num_warn) {
          ostringstream ss2;
-         ss2 << num_err << " osds have slow requests";
+         ss2 << num_warn << " osds have slow requests";
          summary.push_back(make_pair(HEALTH_WARN, ss2.str()));
          detail->push_back(make_pair(HEALTH_WARN, ss2.str()));
        }