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:
Matan Breizman 2022-11-29 11:00:52 +00:00
parent 2f77bbb79c
commit b63ab1f4ae

View File

@ -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;