summaryrefslogtreecommitdiffstats
path: root/lib/test_module.c
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-03-13 16:36:15 +0200
committerSage Weil <sage@inktank.com>2014-04-04 21:07:44 -0700
commit86f1742b94dd0b4a2eb9255205d1756ddea182f8 (patch)
tree3ac1c58709b0aba00d2acb15ef17bc49ff630cf8 /lib/test_module.c
parent9902e682c7f3df9ed5f60bc6f9c7efa6fd6b2d1d (diff)
downloadblackbird-op-linux-86f1742b94dd0b4a2eb9255205d1756ddea182f8.tar.gz
blackbird-op-linux-86f1742b94dd0b4a2eb9255205d1756ddea182f8.zip
libceph: fixup error handling in osdmap_apply_incremental()
The existing error handling scheme requires resetting err to -EINVAL prior to calling any ceph_decode_* macro. This is ugly and fragile, and there already are a few places where we would return 0 on error, due to a missing reset. Follow osdmap_decode() and fix this by adding a special e_inval label to be used by all ceph_decode_* macros. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'lib/test_module.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud