Re: Make use of pg_memory_is_all_zeros() in more places

2024-12-11 Thread Nathan Bossart
Committed. -- nathan

Re: Make use of pg_memory_is_all_zeros() in more places

2024-12-10 Thread Bertrand Drouvot
Hi, On Wed, Dec 11, 2024 at 03:03:34PM +0900, Michael Paquier wrote: > On Tue, Dec 10, 2024 at 02:18:33PM +, Bertrand Drouvot wrote: > > While searching for memcmp() calls in "*stat*.c" files (due to [1]), it > > appeared > > that we could $SUBJECT. Please find attached a patch doing so. > >

Re: Make use of pg_memory_is_all_zeros() in more places

2024-12-10 Thread Michael Paquier
On Tue, Dec 10, 2024 at 02:18:33PM +, Bertrand Drouvot wrote: > While searching for memcmp() calls in "*stat*.c" files (due to [1]), it > appeared > that we could $SUBJECT. Please find attached a patch doing so. -SockAddrzero_clientaddr; -memset(&zero_clientaddr, 0

Make use of pg_memory_is_all_zeros() in more places

2024-12-10 Thread Bertrand Drouvot
aws.amazon.com >From 9b58b74506e27f2cd3a0e7d00fa1c32c7aaf2212 Mon Sep 17 00:00:00 2001 From: Bertrand Drouvot Date: Tue, 10 Dec 2024 11:01:40 +0000 Subject: [PATCH v1] Make use of pg_memory_is_all_zeros() in more places Some places are using a memset()/memcmp() combination to check that a struc