mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
Merge pull request #51381 from Matan-B/wip-matanb-c-blocklist-fix
crimson/osd/osd_operations/client_request: Fix client blocklisting Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
commit
612c81d210
@ -272,8 +272,8 @@ ClientRequest::do_process(
|
||||
return reply_op_error(pg, -ENAMETOOLONG);
|
||||
} else if (m->get_hobj().oid.name.empty()) {
|
||||
return reply_op_error(pg, -EINVAL);
|
||||
} else if (pg->get_osdmap()->is_blocklisted(m->get_source_addr())) {
|
||||
logger().info("{} is blocklisted", m->get_source_addr());
|
||||
} else if (pg->get_osdmap()->is_blocklisted(conn->get_peer_addr())) {
|
||||
logger().info("{} is blocklisted", conn->get_peer_addr());
|
||||
return reply_op_error(pg, -EBLOCKLISTED);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user