]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: return rval which is negative
authorKefu Chai <kchai@redhat.com>
Thu, 20 Aug 2020 17:29:51 +0000 (01:29 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 24 Aug 2020 09:51:31 +0000 (17:51 +0800)
commitc850a1d25d357daf36eeeb3af8c9abbada336739
treecd14ffdd6c4300c769f64c6078c89bd1ed7a3fd3
parent570342b1a92f0ab22f9e3ba33863080f4e771c39
crimson/osd: return rval which is negative

a less-than-zero rval indicates an error, and should not be normalized
to 0 if allows_returnvec() evaluates to false. probably we need a better
way to return a negative error code which does not fall into any known
error. but at this moment, grab the last rval and return it if it is
less than zero, can be used as a short term solution.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc