]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: simplify logmonitor check_subs; less noise
authorSage Weil <sage@inktank.com>
Tue, 10 Jul 2012 00:24:19 +0000 (17:24 -0700)
committerSage Weil <sage@inktank.com>
Wed, 11 Jul 2012 04:27:50 +0000 (21:27 -0700)
commit7adc6c08f1474806c83ef6c89e8752d6cfd35bfd
tree1392aae156b383553ab16be2d380ca40499e5707
parent38e2de3d20c1fb68a87cd8a91f5e1248218df311
mon: simplify logmonitor check_subs; less noise

 * simple helper to translate name to id
 * verify sub type is valid in caller
 * assert sub type is valid in method
 * simplify iterator usage

Among other things, this gets rid of this noise in the logs:

2012-07-10 20:51:42.617152 7facb23f1700  1 mon.a@1(peon).log v310 check_sub sub monmap not log type

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/LogMonitor.cc
src/mon/LogMonitor.h
src/mon/Monitor.cc