]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: fix readdir eof() calc--caller stop implies !eof 29409/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 14 Jun 2019 18:26:27 +0000 (14:26 -0400)
committerPrashant D <pdhange@redhat.com>
Tue, 30 Jul 2019 23:07:35 +0000 (19:07 -0400)
commitb9ce591d6213604f4e40a0a3a0d7842fe805ad9f
tree1a18bdd9369e8766bf48a2347ea2ec682d5e47f4
parent3779219431a40a8fd5e927c54687a75affcca007
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>
(cherry picked from commit 7fa9cf35deca5efbf82cf438574d7afe15748bc0)
src/rgw/rgw_file.h