mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
crimson/osd/osd_operations/client_request: fix is_misdirected()
In the case of balanced read the op is not misdirected. Signed-off-by: Matan Breizman <mbreizma@redhat.com>
This commit is contained in:
parent
2f77bbb79c
commit
b63ab1f4ae
@ -342,7 +342,7 @@ bool ClientRequest::is_misdirected(const PG& pg) const
|
||||
return true;
|
||||
}
|
||||
// balanced reads; any replica will do
|
||||
return pg.is_nonprimary();
|
||||
return false;
|
||||
}
|
||||
// neither balanced nor localize reads
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user