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

Commita95d15f

Browse files
committed
Only try to do a graceful disconnect if we've successfully loaded the
shared library with the disconnect function in it. Fixes segmentationfault reported by Jeff Davis.Fujii Masao
1 parent325e9cb commita95d15f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/replication/walreceiver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
*
3131
* IDENTIFICATION
32-
* $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.7 2010/03/21 00:17:58 petere Exp $
32+
* $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.8 2010/04/13 08:16:09 mha Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -330,7 +330,8 @@ WalRcvDie(int code, Datum arg)
330330
SpinLockRelease(&walrcv->mutex);
331331

332332
/* Terminate the connection gracefully. */
333-
walrcv_disconnect();
333+
if (walrcv_disconnect!=NULL)
334+
walrcv_disconnect();
334335
}
335336

336337
/* SIGHUP: set flag to re-read config file at next convenient time */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp