File tree 4 files changed +659
-6
lines changed
4 files changed +659
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ OBJS = src/utils/configuration.o src/utils/json.o src/utils/logger.o \
7
7
OBJS += src/archive.o src/backup.o src/catalog.o src/checkdb.o src/configure.o src/data.o \
8
8
src/delete.o src/dir.o src/fetch.o src/help.o src/init.o src/merge.o \
9
9
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
11
11
12
12
# borrowed files
13
13
OBJS += src/pg_crc.o src/receivelog.o src/streamutil.o \
Original file line number Diff line number Diff line change 15
15
#include <time.h>
16
16
#include <unistd.h>
17
17
18
+ #include "streamer.h"
19
+
18
20
/*
19
21
* global variable needed by ReceiveXlogStream()
20
22
*
@@ -232,11 +234,13 @@ StreamLog(void *arg)
232
234
ctl .synchronous = false;
233
235
ctl .mark_done = false;
234
236
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 );
240
244
241
245
#if PG_VERSION_NUM >= 100000
242
246
if (!ctl .walmethod -> finish ())
You can’t perform that action at this time.
0 commit comments