]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: propagate do_command()'s return value to user space
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 28 Mar 2013 02:07:18 +0000 (02:07 +0000)
committerSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 22:26:37 +0000 (15:26 -0700)
commit06a1e9c0ec8e81e362b5588e9ed1c1318638f027
tree019976fe6714b5faccc27913a8a20cabcc4e3651
parent807487c68108c5447d2c128158ad148b4cd2412a
ceph: propagate do_command()'s return value to user space

We were returning '1' regardless of what do_command() returned in case
of error.  This would make building tools relying on command error codes
short of useless, and forced them to rely instead on error messages.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit e91405d540ce11b9996e4977212553bd33afb3ed)
src/tools/ceph.cc