summaryrefslogtreecommitdiff
path: root/src/backend/access/heap/visibilitymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/heap/visibilitymap.c')
-rw-r--r--src/backend/access/heap/visibilitymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/heap/visibilitymap.c b/src/backend/access/heap/visibilitymap.c
index 7f40d89b9f..60ee76a208 100644
--- a/src/backend/access/heap/visibilitymap.c
+++ b/src/backend/access/heap/visibilitymap.c
@@ -287,10 +287,10 @@ visibilitymap_set(Relation rel, BlockNumber heapBlk, Buffer heapBuf,
cutoff_xid);
/*
- * If data checksums are enabled, we need to protect the heap
- * page from being torn.
+ * If data checksums are enabled (or wal_log_hintbits=on), we
+ * need to protect the heap page from being torn.
*/
- if (DataChecksumsEnabled())
+ if (XLogHintBitIsNeeded())
{
Page heapPage = BufferGetPage(heapBuf);