Unused stricture field in xlogreader:DecodedBkpBlock

Поиск
Список
Период
Сортировка
Искать

Unused stricture field in xlogreader:DecodedBkpBlock

От:
Mikhail Gribkov <youzhick@gmail.com>
Дата:
Вложения:
Hi hackers,

I found that DecodedBkpBlock.data_bufsz field in xlogreader.h is never ever used in the current code and not even mentioned in any comments. It just occupies memory and removing it doesn't seem to break anything.
Should we remove it maybe? Attached is the removal patch.
--
 best regards,
    Mikhail A. Gribkov

e-mail: youzhick@gmail.com
http://www.strava.com/athletes/5085772
phone: +7(916)604-71-12
Telegram: @youzhick

Re: Unused stricture field in xlogreader:DecodedBkpBlock

От:
Nazir Bilal Yavuz <byavuz81@gmail.com>
Дата:
Hi,

On Fri, 17 Oct 2025 at 14:37, Mikhail Gribkov  wrote:
>
> Hi hackers,
>
> I found that DecodedBkpBlock.data_bufsz field in xlogreader.h is never ever used in the current code and not even mentioned in any comments. It just occupies memory and removing it doesn't seem to break anything.
> Should we remove it maybe? Attached is the removal patch.

Thanks for the patch! It looks like it should have been removed in the
3f1ce97346.

-- 
Regards,
Nazir Bilal Yavuz
Microsoft


Re: Unused stricture field in xlogreader:DecodedBkpBlock

От:
Masahiko Sawada <sawada.mshk@gmail.com>
Дата:
On Fri, Oct 17, 2025 at 5:06 AM Nazir Bilal Yavuz  wrote:
>
> Hi,
>
> On Fri, 17 Oct 2025 at 14:37, Mikhail Gribkov  wrote:
> >
> > Hi hackers,
> >
> > I found that DecodedBkpBlock.data_bufsz field in xlogreader.h is never ever used in the current code and not even mentioned in any comments. It just occupies memory and removing it doesn't seem to break anything.
> > Should we remove it maybe? Attached is the removal patch.
>
> Thanks for the patch! It looks like it should have been removed in the
> 3f1ce97346.
>

+1 to remove it. I'll push the patch, barring objections.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com


Re: Unused stricture field in xlogreader:DecodedBkpBlock

От:
Masahiko Sawada <sawada.mshk@gmail.com>
Дата:
On Fri, Oct 17, 2025 at 11:22 AM Masahiko Sawada  wrote:
>
> On Fri, Oct 17, 2025 at 5:06 AM Nazir Bilal Yavuz  wrote:
> >
> > Hi,
> >
> > On Fri, 17 Oct 2025 at 14:37, Mikhail Gribkov  wrote:
> > >
> > > Hi hackers,
> > >
> > > I found that DecodedBkpBlock.data_bufsz field in xlogreader.h is never ever used in the current code and not even mentioned in any comments. It just occupies memory and removing it doesn't seem to break anything.
> > > Should we remove it maybe? Attached is the removal patch.
> >
> > Thanks for the patch! It looks like it should have been removed in the
> > 3f1ce97346.
> >
>
> +1 to remove it. I'll push the patch, barring objections.
>

Pushed.

Regards,

-- 
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com


FAQ