@@ -528,11 +528,7 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync, bool
528
528
}
529
529
530
530
/* Notify end of backup */
531
- {
532
- char backup_database_dir [MAXPGPATH ];
533
- pgBackupGetPath (& current , backup_database_dir , lengthof (backup_database_dir ), DATABASE_DIR );
534
- pg_stop_backup (& current , backup_conn , nodeInfo , backup_database_dir );
535
- }
531
+ pg_stop_backup (& current , backup_conn , nodeInfo , current .database_dir );
536
532
537
533
/* In case of backup from replica >= 9.6 we must fix minRecPoint,
538
534
* First we must find pg_control in backup_files_list.
@@ -719,7 +715,7 @@ pgdata_basic_setup(ConnectionOptions conn_opt, PGNodeInfo *nodeInfo)
719
715
720
716
if (nodeInfo -> is_superuser )
721
717
elog (WARNING , "Current PostgreSQL role is superuser. "
722
- "It is not recommended to run backup or checkdb as superuser." );
718
+ "It is not recommended to run pg_probackup under superuser." );
723
719
724
720
StrNCpy (current .server_version , nodeInfo -> server_version_str ,
725
721
sizeof (current .server_version ));
@@ -974,7 +970,7 @@ check_server_version(PGconn *conn, PGNodeInfo *nodeInfo)
974
970
* All system identifiers must be equal.
975
971
*/
976
972
void
977
- check_system_identifiers (PGconn * conn , char * pgdata )
973
+ check_system_identifiers (PGconn * conn , const char * pgdata )
978
974
{
979
975
uint64 system_id_conn ;
980
976
uint64 system_id_pgdata ;
0 commit comments