]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the wrong return value
authorYan Jun <yan.jun8@zte.com.cn>
Tue, 23 Aug 2016 04:51:10 +0000 (12:51 +0800)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Oct 2016 18:25:37 +0000 (14:25 -0400)
commit9f5c7377143c56b169a62a96dba5c6ff800e4d5c
treea2ad1af3b9df730c62112d01202a18bebce7c81d
parentcf1353c24917ecb9056272da7f6b3e73bba11fa8
rgw: fix the wrong return value

Here `parent->readdir` will return negative numbers When there is an error.
so we should just return it.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
(cherry picked from commit c979be7810793534715c24c6a9f7c8b0ed31de8d)

Fixes: http://tracker.ceph.com/issues/17325
src/rgw/rgw_file.cc