Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"

Started by Sami Imseih8 months ago3 messageshackers

Thread notes

1 note#refactor
hackorum-bot#refactor
hackorum-bot
1 day ago

@global #refactor

#refactor
Jump to latest
#1Sami Imseih
samimseih@gmail.com

Hi,

While looking at something nearby, I noticed a naming inconsistency
for the parameter
name in LWLockNewTrancheId(). It should be tranche_name, similar to
RequestNamedLWLockTranche(), and in other places it's referenced in
the docs/comments.

CC'ng Nathan who committed 38b602b0289fe1d where this was introduced.

--
Sami Imseih
Amazon Web Services (AWS)

Attachments:

t88366_1
v1-0001-Rename-LWLockNewTrancheId-parameter-from-name-to-.patchapplication/octet-stream; name=v1-0001-Rename-LWLockNewTrancheId-parameter-from-name-to-.patchDownload+6-7
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Sami Imseih (#1)
Re: Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"

On Thu, Mar 26, 2026 at 01:34:38PM -0500, Sami Imseih wrote:

While looking at something nearby, I noticed a naming inconsistency for
the parameter name in LWLockNewTrancheId(). It should be tranche_name,
similar to RequestNamedLWLockTranche(), and in other places it's
referenced in the docs/comments.

I don't mind changing it, but I don't find "tranche_name" to be
substantially better than "name" in this case. Maybe it's a little
clearer, but there's not much room for confusion here.

--
nathan

#3Sami Imseih
samimseih@gmail.com
In reply to: Nathan Bossart (#2)
Re: Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"

While looking at something nearby, I noticed a naming inconsistency for
the parameter name in LWLockNewTrancheId(). It should be tranche_name,
similar to RequestNamedLWLockTranche(), and in other places it's
referenced in the docs/comments.

I don't mind changing it, but I don't find "tranche_name" to be
substantially better than "name" in this case.

It's just a matter of consistency and it's more descriptive to the
caller, IMO.

--
Sami Imseih
Amazon Web Services (AWS)