]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: fix readdir eof() calc--caller stop implies !eof 28565/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 14 Jun 2019 18:26:27 +0000 (14:26 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 14 Jun 2019 19:25:00 +0000 (15:25 -0400)
commit7fa9cf35deca5efbf82cf438574d7afe15748bc0
tree81836dee4df5ce66042d8d03b330c03fd2d13bf1
parent85470cd1717f3f5fdfbe46dff2ad0560fbf6b0a9
rgw_file: fix readdir eof() calc--caller stop implies !eof

If rgw_readdir2()'s caller stops enumeration by returning an error
from the readdir callback function, the value of eof is false
for the rgw_readdir2() call.  I.e., eof() is true when the
underlying listing is !truncated and no results were refused by
the caller.

Fixes: http://tracker.ceph.com/issues/40375
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h