mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
Merge pull request #21291 from smithfarm/wip-23596
RGWCivetWeb::read_data: fix arguments to mg_read() call Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
commit
0851524679
@ -57,7 +57,7 @@ size_t RGWCivetWeb::read_data(char *buf, size_t len)
|
||||
return 0;
|
||||
}
|
||||
for (c = 0; c < len; c += ret) {
|
||||
ret = mg_read(conn, buf, len);
|
||||
ret = mg_read(conn, buf+c, len-c);
|
||||
if (ret < 0) {
|
||||
throw rgw::io::Exception(EIO, std::system_category());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user