]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGMonitor: fix uninitialized scalar variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 1 Mar 2014 12:33:18 +0000 (13:33 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 1 Mar 2014 12:33:18 +0000 (13:33 +0100)
commit754a36897b3b1454e51df40c623e216f159874cd
tree2bb95f4ad1470b777c5230026a230f0cf164366f
parent1747c589e7731dea1068d1d020dc2774eb92ae46
PGMonitor: fix uninitialized scalar variable

Fix type handling in dump_stuck_pg_stats. If type is type doesn't
match to known PGMap::STUCK_* type print out a message and return
directly from function.

CID 1030132 (#2 of 2): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value "stuck_type" when calling
 "PGMap::dump_stuck(ceph::Formatter *, PGMap::StuckPG, utime_t) const"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/PGMonitor.cc