mirror of
https://github.com/ceph/ceph
synced 2025-02-01 16:03:43 +00:00
Merge pull request #25758 from xiexingguo/wip-async-prefetch
msg/async: improve read-prefetch logic Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
1b17bf1ca8
@ -213,7 +213,7 @@ ssize_t AsyncConnection::read_until(unsigned len, char *p)
|
||||
|
||||
recv_end = recv_start = 0;
|
||||
/* nothing left in the prefetch buffer */
|
||||
if (len > recv_max_prefetch) {
|
||||
if (left > (uint64_t)recv_max_prefetch) {
|
||||
/* this was a large read, we don't prefetch for these */
|
||||
do {
|
||||
r = read_bulk(p+state_offset, left);
|
||||
|
Loading…
Reference in New Issue
Block a user