1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-02 09:53:24 +02:00

Initialize stop_socket of StreamCtl struct

This commit is contained in:
Arthur Zakirov 2017-08-21 16:36:25 +03:00
parent e2ab82fb49
commit c3c301cdef

View File

@ -2022,6 +2022,8 @@ StreamLog(void *arg)
{
StreamCtl ctl;
MemSet(&ctl, 0, sizeof(ctl));
ctl.startpos = startpos;
ctl.timeline = starttli;
ctl.sysidentifier = NULL;
@ -2029,6 +2031,7 @@ StreamLog(void *arg)
#if PG_VERSION_NUM >= 100000
ctl.walmethod = CreateWalDirectoryMethod(basedir, 0, true);
ctl.replication_slot = replication_slot;
ctl.stop_socket = PGINVALID_SOCKET;
#else
ctl.basedir = basedir;
#endif