Move system identifier generation to a common helper - Mailing list pgsql-hackers

From Imran Zaheer
Subject Move system identifier generation to a common helper
Date
Msg-id CA+UBfa=yN+PKPiKPFAryo1AMjwzD+sH28i=_bP7fzZEgSP2kBA@mail.gmail.com
Whole thread
Responses Re: Move system identifier generation to a common helper
List pgsql-hackers
Hi

The code used to generate a new system identifier is duplicated in
multiple locations, including BootStrapXLOG(), pg_createsubscriber, and
pg_resetwal.

Move the generation logic into a common GenerateSystemIdentifier()
helper so that all callers use a single implementation, avoiding
duplication of the same algorithm.

Thanks
Imran Zaheer

Attachment

pgsql-hackers by date:

Previous
From: Henson Choi
Date:
Subject: Re: Row pattern recognition
Next
From: Chao Li
Date:
Subject: Fix OAuth validator docs for error_detail on internal errors