Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit753a875

Browse files
knizhnikkelvich
authored andcommitted
Add MtmUseRaftable config parameter
1 parent98eb87d commit753a875

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
MODULE_big = multimaster
2-
OBJS = multimaster.o arbiter.o bytebuf.o bgwpool.o pglogical_output.o pglogical_proto.o pglogical_receiver.o pglogical_apply.o pglogical_hooks.o pglogical_config.o ddd.o bkb.o
2+
OBJS = multimaster.oraftable.oarbiter.o bytebuf.o bgwpool.o pglogical_output.o pglogical_proto.o pglogical_receiver.o pglogical_apply.o pglogical_hooks.o pglogical_config.o ddd.o bkb.o
33

44
EXTENSION = multimaster
55
DATA = multimaster--1.0.sql
66

77
.PHONY: all
88

9-
all: multimaster.o multimaster.so
9+
all: multimaster.so
1010

1111
PG_CPPFLAGS = -I$(libpq_srcdir) -DUSE_PGLOGICAL_OUTPUT
1212
SHLIB_LINK =$(libpq)

‎multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ int MtmConnectAttempts;
170170
intMtmConnectTimeout;
171171
intMtmKeepaliveTimeout;
172172
intMtmReconnectAttempts;
173+
boolMtmUseRaftable;
173174
MtmConnectionInfo*MtmConnections;
174175

175176
staticchar*MtmConnStrs;
@@ -178,7 +179,6 @@ static int MtmWorkers;
178179
staticintMtmVacuumDelay;
179180
staticintMtmMinRecoveryLag;
180181
staticintMtmMaxRecoveryLag;
181-
staticboolMtmUseRaftable;
182182

183183
staticExecutorFinish_hook_typePreviousExecutorFinishHook;
184184
staticProcessUtility_hook_typePreviousProcessUtilityHook;

‎raftable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ extern bool RaftableCAS(char const* key, char const* value, bool nowait);
3333
typedefvoid* (*raftable_get_t)(charconst*key,int*size,inttimeout);
3434
typedefvoid (*raftable_set_t)(charconst*key,voidconst*value,intsize,inttimeout);
3535

36+
externboolMtmUseRaftable;
3637

3738
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp