Add -DSIMLIB

This commit is contained in:
Arthur Petukhovsky
2023-07-21 15:40:47 +00:00
parent aed14f52d5
commit 296a0cbac2
3 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -10,8 +10,6 @@
#include "utils/uuid.h"
#include "replication/walreceiver.h"
#define SIMLIB
#define SK_MAGIC 0xCafeCeefu
#define SK_PROTOCOL_VERSION 2