]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: add new get_bl_[sn|ss]_safe functions
authorGreg Farnum <greg@inktank.com>
Wed, 28 Nov 2012 22:27:10 +0000 (14:27 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 29 Nov 2012 00:28:51 +0000 (16:28 -0800)
commit3fe7c6cbe0f19aab787ea5612c636165dfad6db8
treecbe01d885c525ef62e7a72a45a771422c630ca63
parent60f60ff738b0c34af7c394a401987b2604a84468
mon: add new get_bl_[sn|ss]_safe functions

These functions are like the non-safe versions, but assert that
there were no disk errors and have void return types. Change a
bunch of callers who weren't checking the return code to use
these variants instead.
(Unfortunately we can't make them default safe because several of
the callers depend on getting back the length, and are perfectly happy
with ENOENT producing a 0 return value.)

Signed-off-by: Greg Farnum <greg@inktank.com>
src/ceph_mon.cc
src/mon/AuthMonitor.cc
src/mon/MDSMonitor.cc
src/mon/Monitor.cc
src/mon/MonitorStore.h
src/mon/OSDMonitor.cc
src/mon/PGMonitor.cc
src/mon/Paxos.cc