if (modes) {
switch (peer_type) {
case CEPH_ENTITY_TYPE_MON:
+ case CEPH_ENTITY_TYPE_MGR:
*modes = mon_client_modes;
break;
default:
}
return;
case CEPH_ENTITY_TYPE_MON:
- // i am mon
+ case CEPH_ENTITY_TYPE_MGR:
+ // i am mon/mgr
switch (peer_type) {
case CEPH_ENTITY_TYPE_MON:
- // they are mon
+ case CEPH_ENTITY_TYPE_MGR:
+ // they are mon/mgr
if (methods) {
*methods = cluster_methods;
}
switch (peer_type) {
case CEPH_ENTITY_TYPE_MON:
case CEPH_ENTITY_TYPE_MGR:
+ // they are a mon daemon
+ if (methods) {
+ *methods = cluster_methods;
+ }
+ if (modes) {
+ *modes = mon_cluster_modes;
+ }
+ break;
case CEPH_ENTITY_TYPE_MDS:
case CEPH_ENTITY_TYPE_OSD:
// they are another daemon