File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -331,15 +331,6 @@ main(int argc, char *argv[])
331
331
if (rc != -1 && !S_ISDIR (stat_buf .st_mode ))
332
332
elog (ERROR , "-B, --backup-path must be a path to directory" );
333
333
334
- /* command was initialized for a few commands */
335
- if (command )
336
- {
337
- elog_file (INFO , "command: %s" , command );
338
-
339
- pfree (command );
340
- command = NULL ;
341
- }
342
-
343
334
/* Option --instance is required for all commands except init and show */
344
335
if (backup_subcmd != INIT_CMD && backup_subcmd != SHOW_CMD &&
345
336
backup_subcmd != VALIDATE_CMD )
@@ -390,6 +381,15 @@ main(int argc, char *argv[])
390
381
/* Initialize logger */
391
382
init_logger (backup_path , & instance_config .logger );
392
383
384
+ /* command was initialized for a few commands */
385
+ if (command )
386
+ {
387
+ elog_file (INFO , "command: %s" , command );
388
+
389
+ pfree (command );
390
+ command = NULL ;
391
+ }
392
+
393
393
/*
394
394
* We have read pgdata path from command line or from configuration file.
395
395
* Ensure that pgdata is an absolute path.
You can’t perform that action at this time.
0 commit comments