Remove useless pointer advance in StatsShmemInit() - Mailing list pgsql-hackers

From Bertrand Drouvot
Subject Remove useless pointer advance in StatsShmemInit()
Date
Msg-id aKLsu2sdpnyeuSSc@ip-10-97-1-34.eu-west-3.compute.internal
Whole thread Raw
Responses Re: Remove useless pointer advance in StatsShmemInit()
List pgsql-hackers
Hi hackers,

While reviewing [1], I noticed a useless pointer advance and saw that StatsShmemInit()
is doing the same.

As StatsShmemInit() is existing code, let's fix it: the pointer is not used after
its last advance, so that advance is unnecessary and can be removed.

[1]: https://www.postgresql.org/message-id/CAA5RZ0ukmNd%2BC1jH4V6BGEea-wmyLxDtDE5QoEtfXd2W5HNHfQ%40mail.gmail.com

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: ReplicationSlotRelease() crashes when the instance is in the single user mode
Next
From: Kirill Reshke
Date:
Subject: Re: test_ddl_deparse: Rename test create_sequence_1