Skip to content

Commit

Permalink
mon: AuthMonitor doesn't overwrite allow_all bit
Browse files Browse the repository at this point in the history
on incoming messages, only on initial connect.
  • Loading branch information
Greg Farnum committed Mar 10, 2010
1 parent efcd0d8 commit 719c13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/AuthMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ bool AuthMonitor::prep_auth(MAuth *m, bool paxos_writable)
// new session
proto = s->auth_handler->start_session(entity_name, indata, response_bl, caps_info);
ret = 0;
s->caps.set_allow_all(caps_info.allow_all);
} else {
// request
ret = s->auth_handler->handle_request(indata, response_bl, s->global_id, caps_info, &auid);
Expand All @@ -429,7 +430,6 @@ bool AuthMonitor::prep_auth(MAuth *m, bool paxos_writable)
paxos->wait_for_active(new C_RetryMessage(this, m));
goto done;
}
s->caps.set_allow_all(caps_info.allow_all);
if (caps_info.caps.length()) {
bufferlist::iterator iter = caps_info.caps.begin();
s->caps.parse(iter);
Expand Down

0 comments on commit 719c13a

Please sign in to comment.