]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor.cc: fix potential division by zero 2396/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 4 Sep 2014 14:09:01 +0000 (16:09 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 4 Sep 2014 14:09:01 +0000 (16:09 +0200)
commit409c955608653576bde3402c87232b4e25648d4a
tree21dff24b42316d52be4883e6ef4925a3c83ce809
parent7b77210740e9cd201312a7eac475048858251dca
OSDMonitor.cc: fix potential division by zero

Fix for:

CID 1232602 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
 divide_by_zero: In expression num_pg_copies / num_osds, division
 by expression num_osds which may be zero has undefined behavior.

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