[PATCH] Remove unused PartitionDescData.last_found_part_index field

Started by Aleksander Alekseev4 months ago3 messageshackers
Jump to latest
#1Aleksander Alekseev
aleksander@tigerdata.com

Hi,

It looks like this field was write-only since its introduction in
3592e0ff98b. The proposed patch removes dead code.

--
Best regards,
Aleksander Alekseev

Attachments:

t253298_1
v1-0001-Remove-unused-PartitionDescData.last_found_part_i.patchtext/x-patch; charset=US-ASCII; name=v1-0001-Remove-unused-PartitionDescData.last_found_part_i.patchDownload+0-9
#2Quan Zongliang
quanzongliang@yeah.net
In reply to: Aleksander Alekseev (#1)
Re: [PATCH] Remove unused PartitionDescData.last_found_part_index field

On 8/3/26 8:21 PM, Aleksander Alekseev wrote:

Hi,

It looks like this field was write-only since its introduction in
3592e0ff98b. The proposed patch removes dead code.

Agree.

Based on the latest code and 3592e0ff98b, it is clear that this field
was not used. Perhaps during this period, some of the codes might have
accessed this field. But this does not affect the fact that they are
currently in a useless state.

--
Quan Zongliang

#3David Rowley
dgrowleyml@gmail.com
In reply to: Aleksander Alekseev (#1)
Re: [PATCH] Remove unused PartitionDescData.last_found_part_index field

On Tue, 4 Aug 2026 at 00:22, Aleksander Alekseev
<aleksander@tigerdata.com> wrote:

It looks like this field was write-only since its introduction in
3592e0ff98b. The proposed patch removes dead code.

Thanks. I went through and fixed up (hopefully) all the now outdated
comments and pushed.

David