forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iotune: don't coredump when directory fails to be created
The current file write code doesn't check if the directory was created successfully because if it wasn't, writing the file itself will throw. However, it is not always the case that creating a directory will return an error message. It may throw, and if it does, the program will crash on an unhandled exception. So let's change the code slightly so that everything related to file creation falls within the try/catch block. We do have to return an error code from this, which we currently don't do. Fixes scylladb#129 Signed-off-by: Glauber Costa <[email protected]>
- Loading branch information
Glauber Costa
committed
May 4, 2016
1 parent
c05df60
commit 332d8e6
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters