bool MDSMonitor::preprocess_beacon(MMDSBeacon *m)
{
- entity_addr_t addr = m->get_orig_source_inst().addr;
int state = m->get_state();
uint64_t gid = m->get_global_id();
version_t seq = m->get_seq();
bool op_allow = false;
bool op_deny = false;
- bool cmd_service = false;
bool any_cmd = false;
- bool cmd_uid = false;
bool got_eq = false;
list<int> services_list;
list<int> uid_list;
if (init) {
op_allow = false;
op_deny = false;
- cmd_service = false;
- cmd_uid = false;
any_cmd = false;
got_eq = false;
last_is_comma = false;
} else if ((token.compare("services") == 0) ||
(token.compare("service") == 0)) {
ASSERT_STATE(op_allow || op_deny);
- cmd_service = true;
any_cmd = true;
} else if (token.compare("uid") == 0) {
ASSERT_STATE(op_allow || op_deny);
any_cmd = true;
- cmd_uid = true;
} else if (is_rwx(token, cap_val)) {
ASSERT_STATE(op_allow || op_deny);
} else if (token.compare(";") != 0) {
void OSDMonitor::remove_redundant_pg_temp()
{
dout(10) << "remove_redundant_pg_temp" << dendl;
- bool removed = false;
for (map<pg_t,vector<int> >::iterator p = osdmap.pg_temp.begin();
p != osdmap.pg_temp.end();
if (raw_up == p->second) {
dout(10) << " removing unnecessary pg_temp " << p->first << " -> " << p->second << dendl;
pending_inc.new_pg_temp[p->first].clear();
- removed = true;
}
}
}