Skip to content

Commit 70a317a

Browse files
committed
Check fo rinterrupts in raftable
1 parent 455dddc commit 70a317a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

contrib/mmts/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 9
34+
ENV REBUILD 10
3535

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

contrib/mmts/arbiter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,9 @@ static void MtmTransSender(Datum arg)
710710
txBuffer[i].used = 0;
711711
}
712712
}
713+
CHECK_FOR_INTERRUPTS();
713714
}
715+
elog(LOG, "Stop arbiter sender %d", MyProcPid);
714716
}
715717

716718

contrib/raftable/worker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static void worker_main(Datum arg)
445445

446446
elog(LOG, "Start raftable worker");
447447

448-
state = (StateP)get_shared_state();
448+
state = get_shared_state();
449449

450450
cfg->raft_config.userdata = state;
451451
cfg->raft_config.applier = applier;
@@ -487,6 +487,7 @@ static void worker_main(Datum arg)
487487
raft_handle_message(raft, m);
488488
notify();
489489
}
490+
CHECK_FOR_INTERRUPTS();
490491
}
491492
elog(LOG, "Raftable worker stopped");
492493
}

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