Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b7fb5d

Browse files
committed
minor bugfix: close ssh connection when it is not needed
1 parent569144a commit3b7fb5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎src/backup.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ do_backup_instance(PGconn *backup_conn)
534534
}
535535
}
536536

537+
/* ssh connection to longer needed */
538+
fio_disconnect();
539+
537540
/* Notify end of backup */
538541
pg_stop_backup(&current,pg_startbackup_conn);
539542

@@ -680,6 +683,9 @@ do_backup(time_t start_time, bool no_validate)
680683
*/
681684
check_system_identifiers(backup_conn,instance_config.pgdata);
682685

686+
/* ssh connection to longer needed */
687+
fio_disconnect();
688+
683689
/* below perform checks specific for backup command */
684690
#ifPG_VERSION_NUM >=110000
685691
if (!RetrieveWalSegSize(backup_conn))
@@ -2143,6 +2149,9 @@ backup_files(void *arg)
21432149
elog(WARNING,"unexpected file type %d",buf.st_mode);
21442150
}
21452151

2152+
/* ssh connection to longer needed */
2153+
fio_disconnect();
2154+
21462155
/* Close connection */
21472156
if (arguments->conn_arg.conn)
21482157
pgut_disconnect(arguments->conn_arg.conn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp