Minor code de-duplication in fe-connect.c - Mailing list pgsql-hackers

From Gurjeet Singh
Subject Minor code de-duplication in fe-connect.c
Date
Msg-id CABwTF4Um-Y=QkfA42Sx0oThasNPgmurk_gU4hfy_Ntf64n4bUQ@mail.gmail.com
Whole thread Raw
Responses Re: Minor code de-duplication in fe-connect.c
List pgsql-hackers
Commit [1] implements Fisher-Yates shuffling algorithm to shuffle
connection addresses, in two places.

The attached patch moves the duplicated code to a function, and calls
it in those 2 places.

[1]: Support connection load balancing in libpq
7f5b19817eaf38e70ad1153db4e644ee9456853e

Best regards,
Gurjeet https://Gurje.et
Postgres Contributors Team, http://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Gurjeet Singh
Date:
Subject: Re: Make message strings in fe-connect.c consistent
Next
From: "Yu Shi (Fujitsu)"
Date:
Subject: RE: Test failures of 100_bugs.pl