MCPcopy Create free account
hub / github.com/ceph/ceph / handle_command

Method handle_command

src/osd/OSD.cc:7426–7442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7424}
7425
7426void OSD::handle_command(MCommand *m)
7427{
7428 ConnectionRef con = m->get_connection();
7429 auto session = ceph::ref_cast<Session>(con->get_priv());
7430 if (!session) {
7431 con->send_message(new MCommandReply(m, -EACCES));
7432 m->put();
7433 return;
7434 }
7435 if (!session->caps.allow_all()) {
7436 con->send_message(new MCommandReply(m, -EACCES));
7437 m->put();
7438 return;
7439 }
7440 cct->get_admin_socket()->queue_tell_command(m);
7441 m->put();
7442}
7443
7444namespace {
7445 class unlock_guard {

Callers

nothing calls this directly

Calls 7

get_privMethod · 0.80
queue_tell_commandMethod · 0.80
get_admin_socketMethod · 0.80
get_connectionMethod · 0.45
send_messageMethod · 0.45
putMethod · 0.45
allow_allMethod · 0.45

Tested by

no test coverage detected