mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-22 09:57:47 +03:00
debug: move misplaced log_debug
It should log action before taking it instead of only in error path.
This commit is contained in:
parent
57f468a53e
commit
509b2e5247
@ -985,8 +985,8 @@ static int _vg_write_file(struct format_instance *fid __attribute__((unused)),
|
||||
if (lvm_fclose(fp, tc->path_edit))
|
||||
return_0;
|
||||
|
||||
log_debug_metadata("Renaming %s to %s", temp_file, tc->path_edit);
|
||||
if (rename(temp_file, tc->path_edit)) {
|
||||
log_debug_metadata("Renaming %s to %s", temp_file, tc->path_edit);
|
||||
log_error("%s: rename to %s failed: %s", temp_file,
|
||||
tc->path_edit, strerror(errno));
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user