mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-20 06:30:43 +00:00
Add -DSIMLIB
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include "utils/uuid.h"
|
||||
#include "replication/walreceiver.h"
|
||||
|
||||
#define SIMLIB
|
||||
|
||||
#define SK_MAGIC 0xCafeCeefu
|
||||
#define SK_PROTOCOL_VERSION 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user