typo.patch

application/octet-stream

Filename: typo.patch
Type: application/octet-stream
Part: 0
Message: Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL

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
File+
src/backend/access/transam/xlog.c 2 0
*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 535,541 **** static int XLogFileReadAnyTLI(uint32 log, uint32 seg, int emode,
  				   int sources);
  static bool XLogPageRead(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt,
  			 bool randAccess);
! static int emode_for_corrupt_record(int endofwalmode);
  static void XLogFileClose(void);
  static bool RestoreArchivedFile(char *path, const char *xlogfname,
  					const char *recovername, off_t expectedSize);
--- 535,541 ----
  				   int sources);
  static bool XLogPageRead(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt,
  			 bool randAccess);
! static int emode_for_corrupt_record(int emode);
  static void XLogFileClose(void);
  static bool RestoreArchivedFile(char *path, const char *xlogfname,
  					const char *recovername, off_t expectedSize);
***************
*** 9065,9071 **** triggered:
   *
   * 'emode' is the error mode that would be used to report a file-not-found
   * or legitimate end-of-WAL situation. It is upgraded to WARNING or PANIC
!  * if the an corrupt record is not expected at this point.
   */
  static int
  emode_for_corrupt_record(int emode)
--- 9065,9071 ----
   *
   * 'emode' is the error mode that would be used to report a file-not-found
   * or legitimate end-of-WAL situation. It is upgraded to WARNING or PANIC
!  * if a corrupt record is not expected at this point.
   */
  static int
  emode_for_corrupt_record(int emode)