Fix an uninitialized access in hash_xlog_squeeze_page().

Amit Kapila <akapila@postgresql.org>

Commit: f66fcc5cd616da8d81a2d2f9b80a9f080796f4b6
Author: Amit Kapila <akapila@postgresql.org>
Date: 2023-12-01T04:52:13Z
Releases: 17.0
Fix an uninitialized access in hash_xlog_squeeze_page().

Commit 861f86beea changed hash_xlog_squeeze_page() to start reading
the write buffer conditionally but forgot to initialize it leading to an
uninitialized access.

Reported-by: Alexander Lakhin
Author: Hayato Kuroda
Reviewed-by: Alexander Lakhin, Amit Kapila
Discussion: http://postgr.es/m/62ed1a9f-746a-8e86-904b-51b9b806a1d9@gmail.com

Files

Discussion