incorrect_replay_location_v1.patch

text/x-diff

Filename: incorrect_replay_location_v1.patch
Type: text/x-diff
Part: 0
Message: replay_location indicates incorrect location

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/access/transam/xlog.c 1 0
*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 6407,6413 **** StartupXLOG(void)
  		 */
  		SpinLockAcquire(&xlogctl->info_lck);
  		xlogctl->replayEndRecPtr = ReadRecPtr;
! 		xlogctl->recoveryLastRecPtr = ReadRecPtr;
  		xlogctl->recoveryLastXTime = 0;
  		xlogctl->currentChunkStartTime = 0;
  		xlogctl->recoveryPause = false;
--- 6407,6413 ----
  		 */
  		SpinLockAcquire(&xlogctl->info_lck);
  		xlogctl->replayEndRecPtr = ReadRecPtr;
! 		xlogctl->recoveryLastRecPtr = EndRecPtr;
  		xlogctl->recoveryLastXTime = 0;
  		xlogctl->currentChunkStartTime = 0;
  		xlogctl->recoveryPause = false;