Skip to content

Commit eb0766e

Browse files
committed
[Issue #350] initial commit
1 parent 3837a62 commit eb0766e

File tree

4 files changed

+659
-6
lines changed

4 files changed

+659
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OBJS = src/utils/configuration.o src/utils/json.o src/utils/logger.o \
77
OBJS += src/archive.o src/backup.o src/catalog.o src/checkdb.o src/configure.o src/data.o \
88
src/delete.o src/dir.o src/fetch.o src/help.o src/init.o src/merge.o \
99
src/parsexlog.o src/ptrack.o src/pg_probackup.o src/restore.o src/show.o src/stream.o \
10-
src/util.o src/validate.o src/datapagemap.o
10+
src/util.o src/validate.o src/datapagemap.o src/streamer.o
1111

1212
# borrowed files
1313
OBJS += src/pg_crc.o src/receivelog.o src/streamutil.o \

src/stream.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <time.h>
1616
#include <unistd.h>
1717

18+
#include "streamer.h"
19+
1820
/*
1921
* global variable needed by ReceiveXlogStream()
2022
*
@@ -232,11 +234,13 @@ StreamLog(void *arg)
232234
ctl.synchronous = false;
233235
ctl.mark_done = false;
234236

235-
if(ReceiveXlogStream(stream_arg->conn, &ctl) == false)
236-
{
237-
interrupted = true;
238-
elog(ERROR, "Problem in receivexlog");
239-
}
237+
// if(ReceiveXlogStream(stream_arg->conn, &ctl) == false)
238+
// {
239+
// interrupted = true;
240+
// elog(ERROR, "Problem in receivexlog");
241+
// }
242+
243+
RunStream(stream_arg->conn, &ctl);
240244

241245
#if PG_VERSION_NUM >= 100000
242246
if (!ctl.walmethod->finish())

0 commit comments

Comments
 (0)