]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: use 64-bit value in sync read eof logic
authorSage Weil <sage@inktank.com>
Mon, 3 Feb 2014 16:54:14 +0000 (08:54 -0800)
committerSage Weil <sage@inktank.com>
Mon, 3 Feb 2014 17:02:35 +0000 (09:02 -0800)
commitf2684c9388adcfcea66552a3a33323cf5ff05435
tree39fd447ac19c3456a94df179215ab7267b177351
parent26ad5dedf695cb88d9e3bc2e05503cf04aa6fa27
client: use 64-bit value in sync read eof logic

The file size can jump to a value that is very much larger than our current
position (for example, it could be a disk image file that gets a sparse
write at a large offset).  Use a 64-bit value so that 'some' doesn't
overflow.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: John Spray <john.spray@inktank.com>
(cherry picked from commit 7ff2b541c24d1c81c3bcfbcb347694c2097993d7)
src/client/Client.cc