summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-06-22 16:42:38 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-06-22 16:42:38 -0400
commit52a5eacc155949d68ff782ce10fec269f753ad75 (patch)
treef9d6ecd1788e8dba042e3ec5f8a7aa0b3821b563 /src
parent823a51ed30c0985718175666e938b3f0e68d8e42 (diff)
Fix typo in comment
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 3b2fefe932e..0ec5e834d12 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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.