sync_rep_typo_fix_v1.patch
application/octet-stream
Filename: sync_rep_typo_fix_v1.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
Series: patch v1
| File | + | − |
|---|---|---|
| src/backend/replication/syncrep.c | 1 | 0 |
| src/backend/storage/ipc/shmqueue.c | 1 | 0 |
| src/include/replication/syncrep.h | 1 | 1 |
*** a/src/backend/replication/syncrep.c --- b/src/backend/replication/syncrep.c *************** *** 445,451 **** SyncRepGetStandbyPriority(void) } /* ! * Walk queue from head setting setting the state of any backends that * need to be woken, remove them from the queue and then wake them. * Set all = true to wake whole queue, or just up to LSN. * --- 445,451 ---- } /* ! * Walk queue from head for setting the state of any backends that * need to be woken, remove them from the queue and then wake them. * Set all = true to wake whole queue, or just up to LSN. * *** a/src/backend/storage/ipc/shmqueue.c --- b/src/backend/storage/ipc/shmqueue.c *************** *** 157,163 **** SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, Size linkOffset) /*-------------------- * SHMQueuePrev -- Get the previous element from a queue * ! * Same as SHMQueueNext, just starting at tail and moving towards head * All other comments and usage applies. */ Pointer --- 157,163 ---- /*-------------------- * SHMQueuePrev -- Get the previous element from a queue * ! * Same as SHMQueueNext, just starting at tail and moving towards head. * All other comments and usage applies. */ Pointer *** a/src/include/replication/syncrep.h --- b/src/include/replication/syncrep.h *************** *** 28,34 **** /* user-settable parameters for synchronous replication */ extern bool sync_rep_mode; - extern int sync_rep_timeout; extern char *SyncRepStandbyNames; /* called by user backend */ --- 28,33 ---- *************** *** 43,48 **** extern void SyncRepReleaseWaiters(void); /* called by various procs */ extern int SyncRepWakeQueue(bool all); ! const char *assign_synchronous_standby_names(const char *newval, bool doit, GucSource source); #endif /* _SYNCREP_H */ --- 42,47 ---- /* called by various procs */ extern int SyncRepWakeQueue(bool all); ! extern const char *assign_synchronous_standby_names(const char *newval, bool doit, GucSource source); #endif /* _SYNCREP_H */