Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion xtrabackup/backup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def check_prerequisites(self, repository):
raise

def prepare_workdir(self, path):
filesystem_utils.mkdir_path(path, 0o755)
try:
filesystem_utils.mkdir_path(path, 0o755)
except exception.ProgramError:
self.logger.error('Workdir preparation failed.', exc_info=True)
raise
self.workdir = path + '/xtrabackup_tmp'
self.logger.debug("Temporary workdir: " + self.workdir)
if self.compress:
Expand Down
2 changes: 1 addition & 1 deletion xtrabackup/filesystem_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def mkdir_path(path, mode):
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise
raise ProgramError("Unable to create directory: " + path)


def check_required_binaries(binaries):
Expand Down