Fix typo in comment
authorAlvaro Herrera
Thu, 22 Jun 2017 20:42:38 +0000 (16:42 -0400)
committerAlvaro Herrera
Thu, 22 Jun 2017 20:42:38 +0000 (16:42 -0400)
Once upon a time, WAL pointers could be NULL, but no longer.  We talk about
"valid" now.

Reported-by: Amit Langote
Discussion: https://postgr.es/m/33e9617d-27f1-eee8-3311-e27af98eaf2b@lab.ntt.co.jp

src/backend/access/transam/xlog.c

index 3b2fefe932efd0b08096b1734045df7c50e38854..0ec5e834d12ced72558df36b85d8accdce279bb9 100644 (file)
@@ -4132,7 +4132,7 @@ RestoreBackupBlockContents(XLogRecPtr lsn, BkpBlock bkpb, char *blk,
 /*
  * Attempt to read an XLOG record.
  *
- * If RecPtr is not NULL, try to read a record at that position.  Otherwise
+ * If RecPtr is valid, try to read a record at that position.  Otherwise
  * try to read a record just after the last one previously read.
  *
  * If no valid record is available, returns NULL, or fails if emode is PANIC.