]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: cleanup ::_read return 20828/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 10 Mar 2018 00:55:37 +0000 (16:55 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 10 Mar 2018 00:55:37 +0000 (16:55 -0800)
commit608aafb99f9d194a1f7e365f1d135731475ffb52
tree9f8faac5cd60402da4475d1df8c6c6596ac0cb10
parent2067f7c679822976bdee00068bcd124c96875844
client: cleanup ::_read return

::_read should be returning the number of bytes read, not the length of the
buffer. If the buffer already had data in it, the return value is wrong.

Fixes: https://tracker.ceph.com/issues/23293
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/client/Client.cc