]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: don't write output on error
authorSage Weil <sage@newdream.net>
Mon, 23 Jan 2012 20:43:03 +0000 (12:43 -0800)
committerSage Weil <sage@newdream.net>
Mon, 23 Jan 2012 20:50:06 +0000 (12:50 -0800)
commit54a76734b11c87f1edab993f15dc0a754b843019
treee64454211d5234816e562f4df4131883f4063e11
parent7ce544e640d45e901ef67e8268c963c958a66eff
ceph: don't write output on error

Accumulate all output, and write it at the end.  This way we can avoid
writing it if any of the commands fail.

Fixes: #1954
Signed-off-by: Sage Weil <sage@newdream.net>
src/tools/ceph.cc