diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/commands/async.h | 12 | ||||
-rw-r--r-- | src/include/storage/sinval.h | 7 | ||||
-rw-r--r-- | src/include/tcop/tcopprot.h | 4 |
3 files changed, 11 insertions, 12 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h index 87c3abbfee7..8491f4736f7 100644 --- a/src/include/commands/async.h +++ b/src/include/commands/async.h @@ -13,6 +13,8 @@ #ifndef ASYNC_H #define ASYNC_H +#include <signal.h> + #include "fmgr.h" /* @@ -21,6 +23,7 @@ #define NUM_ASYNC_BUFFERS 8 extern bool Trace_notify; +extern volatile sig_atomic_t notifyInterruptPending; extern Size AsyncShmemSize(void); extern void AsyncShmemInit(void); @@ -48,12 +51,7 @@ extern void ProcessCompletedNotifies(void); /* signal handler for inbound notifies (PROCSIG_NOTIFY_INTERRUPT) */ extern void HandleNotifyInterrupt(void); -/* - * enable/disable processing of inbound notifies directly from signal handler. - * The enable routine first performs processing of any inbound notifies that - * have occurred since the last disable. - */ -extern void EnableNotifyInterrupt(void); -extern bool DisableNotifyInterrupt(void); +/* process interrupts */ +extern void ProcessNotifyInterrupt(void); #endif /* ASYNC_H */ diff --git a/src/include/storage/sinval.h b/src/include/storage/sinval.h index 1a6f2dfd38b..d9ffd7228fe 100644 --- a/src/include/storage/sinval.h +++ b/src/include/storage/sinval.h @@ -14,8 +14,9 @@ #ifndef SINVAL_H #define SINVAL_H -#include "storage/relfilenode.h" +#include <signal.h> +#include "storage/relfilenode.h" /* * We support several types of shared-invalidation messages: @@ -123,6 +124,7 @@ typedef union /* Counter of messages processed; don't worry about overflow. */ extern uint64 SharedInvalidMessageCounter; +extern volatile sig_atomic_t catchupInterruptPending; extern void SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, int n); @@ -138,8 +140,7 @@ extern void HandleCatchupInterrupt(void); * The enable routine first performs processing of any catchup events that * have occurred since the last disable. */ -extern void EnableCatchupInterrupt(void); -extern bool DisableCatchupInterrupt(void); +extern void ProcessCatchupInterrupt(void); extern int xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, bool *RelcacheInitFileInval); diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index 0a350fda2a9..fe8c725c7fe 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -67,8 +67,8 @@ extern void StatementCancelHandler(SIGNAL_ARGS); extern void FloatExceptionHandler(SIGNAL_ARGS) __attribute__((noreturn)); extern void RecoveryConflictInterrupt(ProcSignalReason reason); /* called from SIGUSR1 * handler */ -extern void prepare_for_client_read(void); -extern void client_read_ended(void); +extern void ProcessClientReadInterrupt(void); + extern void process_postgres_switches(int argc, char *argv[], GucContext ctx, const char **dbname); extern void PostgresMain(int argc, char *argv[], |