From 296a0cbac25ed62f25e27c63328c095d6298e8fc Mon Sep 17 00:00:00 2001 From: Arthur Petukhovsky Date: Fri, 21 Jul 2023 15:40:47 +0000 Subject: [PATCH] Add -DSIMLIB --- pgxn/neon/Makefile | 2 +- pgxn/neon/walproposer.c | 2 +- pgxn/neon/walproposer.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pgxn/neon/Makefile b/pgxn/neon/Makefile index b8d3e35b81..859fed46fe 100644 --- a/pgxn/neon/Makefile +++ b/pgxn/neon/Makefile @@ -13,7 +13,7 @@ OBJS = \ walproposer.o \ walproposer_utils.o -PG_CPPFLAGS = -I$(libpq_srcdir) +PG_CPPFLAGS = -I$(libpq_srcdir) -DSIMLIB PG_LIBS = $(libpq) EXTENSION = neon diff --git a/pgxn/neon/walproposer.c b/pgxn/neon/walproposer.c index 81a2b51a2a..5842c1716a 100644 --- a/pgxn/neon/walproposer.c +++ b/pgxn/neon/walproposer.c @@ -83,7 +83,6 @@ char *neon_tenant_walproposer = NULL; char *neon_safekeeper_token_walproposer = NULL; #define WAL_PROPOSER_SLOT_NAME "wal_proposer_slot" -#define SIMLIB #ifdef SIMLIB #include "rust_bindings.h" @@ -1283,6 +1282,7 @@ HandleElectedProposer(void) } else if (syncSafekeepers) { + // elog(FATAL, "synced %X/%X", LSN_FORMAT_ARGS(propEpochStartLsn)); /* Sync is not needed: just exit */ fprintf(stdout, "%X/%X\n", LSN_FORMAT_ARGS(propEpochStartLsn)); exit(0); diff --git a/pgxn/neon/walproposer.h b/pgxn/neon/walproposer.h index 35807a4c88..c18612a8ba 100644 --- a/pgxn/neon/walproposer.h +++ b/pgxn/neon/walproposer.h @@ -10,8 +10,6 @@ #include "utils/uuid.h" #include "replication/walreceiver.h" -#define SIMLIB - #define SK_MAGIC 0xCafeCeefu #define SK_PROTOCOL_VERSION 2