Skip to content

Commit 60114ca

Browse files
committed
[Issue #174] added greedy algorithm, elapsed time report and single thread optimization
1 parent c32c611 commit 60114ca

File tree

6 files changed

+245
-100
lines changed

6 files changed

+245
-100
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ OBJS += src/pg_crc.o src/datapagemap.o src/receivelog.o src/streamutil.o \
1515

1616
EXTRA_CLEAN = src/pg_crc.c src/datapagemap.c src/datapagemap.h \
1717
src/receivelog.c src/receivelog.h src/streamutil.c src/streamutil.h \
18-
src/xlogreader.c
18+
src/xlogreader.c src/instr_time.h
1919

20-
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h
20+
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h src/instr_time.h
2121

2222
ifdef USE_PGXS
2323
PG_CONFIG = pg_config
@@ -60,6 +60,8 @@ all: checksrcdir $(INCLUDES);
6060

6161
$(PROGRAM): $(OBJS)
6262

63+
src/instr_time.h: $(top_srcdir)/src/include/portability/instr_time.h
64+
rm -f $@ && $(LN_S) $(srchome)/src/include/portability/instr_time.h $@
6365
src/datapagemap.c: $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
6466
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_rewind/datapagemap.c $@
6567
src/datapagemap.h: $(top_srcdir)/src/bin/pg_rewind/datapagemap.h

0 commit comments

Comments
 (0)