Skip to content

Commit f2a724e

Browse files
committed
some cleanups around
1 parent f42adcf commit f2a724e

File tree

6 files changed

+3
-52
lines changed

6 files changed

+3
-52
lines changed

contrib/mmts/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
FROM kelvich/postgres_cluster
22

3-
RUN cd /pg/src/contrib/raftable && make clean && make install
4-
53
RUN mkdir /pg/mmts
64
COPY ./ /pg/mmts/
75

8-
RUN export RAFTABLE_PATH=/pg/src/contrib/raftable && \
9-
export USE_PGXS=1 && \
6+
RUN export USE_PGXS=1 && \
107
cd /pg/mmts && make clean && make install
118

129
# pg_regress client assumes such dir exists on server

contrib/mmts/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
MODULE_big = multimaster
22
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 pglogical_relid_map.o ddd.o bkb.o spill.o
33

4-
ifndef RAFTABLE_PATH
5-
RAFTABLE_PATH = ../raftable
6-
endif
7-
8-
override CPPFLAGS += -I$(RAFTABLE_PATH) -I$(RAFTABLE_PATH)/raft/include
9-
104
EXTENSION = multimaster
115
DATA = multimaster--1.0.sql
126

contrib/mmts/multimaster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,6 @@ bool MtmRefreshClusterStatus(bool nowait)
17941794
int i;
17951795

17961796
if (!MtmBuildConnectivityMatrix(matrix, nowait)) {
1797-
/* RAFT is not available */
17981797
return false;
17991798
}
18001799

@@ -4492,7 +4491,7 @@ MtmDetectGlobalDeadLockFortXid(TransactionId xid)
44924491
MtmUnlockNode(i + MtmMaxNodes);
44934492

44944493
if (lockGraphData == NULL) {
4495-
return true; /* If using Raftable is disabled */
4494+
return true;
44964495
} else {
44974496
MtmGraphAdd(&graph, (GlobalTransactionId*)lockGraphData, lockGraphSize/sizeof(GlobalTransactionId));
44984497
}

contrib/mmts/multimaster.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ typedef struct
179179
{
180180
char hostName[MULTIMASTER_MAX_HOST_NAME_SIZE];
181181
char connStr[MULTIMASTER_MAX_CONN_STR_SIZE];
182-
int raftablePort;
183182
int arbiterPort;
184183
} MtmConnectionInfo;
185184

@@ -304,7 +303,6 @@ extern char* MtmDatabaseName;
304303
extern char* MtmDatabaseUser;
305304
extern int MtmConnectTimeout;
306305
extern int MtmReconnectTimeout;
307-
extern int MtmRaftPollDelay;
308306
extern int MtmNodeDisableDelay;
309307
extern int MtmTransSpillThreshold;
310308
extern int MtmHeartbeatSendTimeout;

contrib/mmts/raftable_wrapper.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

contrib/mmts/tests2/docker-entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ if [ "$1" = 'postgres' ]; then
5454
max_worker_processes = 30
5555
max_replication_slots = 10
5656
max_wal_senders = 10
57-
shared_preload_libraries = 'raftable,multimaster'
57+
shared_preload_libraries = 'multimaster'
5858
default_transaction_isolation = 'repeatable read'
5959
6060
multimaster.workers = 4
6161
multimaster.max_nodes = 3
62-
multimaster.use_raftable = false
6362
multimaster.volkswagen_mode = 1
6463
multimaster.queue_size=52857600
6564
multimaster.ignore_tables_without_pk = 1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy