]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: limit size of MOSDMap message sent as reply
authorSage Weil <sage.weil@dreamhost.com>
Fri, 27 Apr 2012 04:29:53 +0000 (21:29 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 28 Apr 2012 14:45:29 +0000 (07:45 -0700)
commite44b126c409d2bdbd2896dc2338e4b9eb06a6ac2
tree05f8481710c536322a21901fd08fc8bb8eabdd9a
parentd1df320b2d55c93b8e4230861b3debc12b9b717f
mon: limit size of MOSDMap message sent as reply

We may send an MOSDMap as a reply to various requests, including

 - a failure report
 - a boot message
 - a pg_temp message
 - an up_thru message

In these cases, send a single MOSDMap message, but limit how big it gets.
All recipients here are osds, which are smart enough to request more maps
based on the MOSDMap::newest_map field.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mon/OSDMonitor.cc