Project

General

Profile

Bug #1954

ceph tool: don't create output files when an error occurs

Added by Josh Durgin almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Doing something like 'ceph osd getmap 1000000 -o osdmap' results in a 0 length file if epoch 1000000 doesn't exist.

Associated revisions

Revision 54a76734 (diff)
Added by Sage Weil almost 12 years ago

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 <>

History

#1 Updated by Sage Weil almost 12 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF