Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 77fb553

Browse files
knizhnikkelvich
authored andcommitted
Fix restart of raftable
1 parent d768aca commit 77fb553

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ USER postgres
3131
ENV CFLAGS -O0
3232
WORKDIR /pg
3333

34-
ENV REBUILD 4
34+
ENV REBUILD 5
3535

3636
RUN cd /pg && \
3737
git clone https://github.com/postgrespro/postgres_cluster.git --depth 1 && \

arbiter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ static BackgroundWorker MtmRecevier = {
144144

145145
void MtmArbiterInitialize(void)
146146
{
147+
elog(LOG, "Register background workers");
147148
RegisterBackgroundWorker(&MtmSender);
148149
RegisterBackgroundWorker(&MtmRecevier);
149150
}
@@ -659,7 +660,7 @@ static void MtmTransSender(Datum arg)
659660
int i;
660661

661662
MtmBuffer* txBuffer = (MtmBuffer*)palloc0(sizeof(MtmBuffer)*nNodes);
662-
663+
elog(LOG, "Start arbiter sender %d", MyProcPid);
663664
InitializeTimeouts();
664665

665666
signal(SIGINT, SetStop);

tests2/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if [ "$1" = 'postgres' ]; then
6969
max_prepared_transactions = 100
7070
synchronous_commit = off
7171
wal_level = logical
72-
max_worker_processes = 15
72+
max_worker_processes = 30
7373
max_replication_slots = 10
7474
max_wal_senders = 10
7575
shared_preload_libraries = 'raftable,multimaster'

0 commit comments

Comments
 (0)