mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
Merge pull request #41791 from rzarzynski/wip-crimson-monc-no_auth_req_when_inactive
crimson/monc: don't serve auth requests without active mon connection. Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
33b3e7cc22
@ -587,6 +587,11 @@ int Client::handle_auth_request(crimson::net::ConnectionRef con,
|
||||
logger().info("skipping challenge on {}", con);
|
||||
authorizer_challenge = nullptr;
|
||||
}
|
||||
if (!active_con) {
|
||||
logger().info("auth request during inactivity period");
|
||||
// let's instruct the client to come back later
|
||||
return -EBUSY;
|
||||
}
|
||||
bool was_challenge = (bool)auth_meta->authorizer_challenge;
|
||||
EntityName name;
|
||||
AuthCapsInfo caps_info;
|
||||
|
Loading…
Reference in New Issue
Block a user