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

Commita85c6ec

Browse files
committed
Add MtmUseRaftable config parameter
1 parentb83be88 commita85c6ec

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎contrib/mmts/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)

‎contrib/mmts/multimaster.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ int MtmConnectAttempts;
171171
intMtmConnectTimeout;
172172
intMtmKeepaliveTimeout;
173173
intMtmReconnectAttempts;
174+
boolMtmUseRaftable;
174175
MtmConnectionInfo*MtmConnections;
175176

176177
staticchar*MtmConnStrs;
@@ -179,7 +180,6 @@ static int MtmWorkers;
179180
staticintMtmVacuumDelay;
180181
staticintMtmMinRecoveryLag;
181182
staticintMtmMaxRecoveryLag;
182-
staticboolMtmUseRaftable;
183183

184184
staticExecutorFinish_hook_typePreviousExecutorFinishHook;
185185
staticProcessUtility_hook_typePreviousProcessUtilityHook;

‎contrib/mmts/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