[PATCH] Share WAL summary filtering logic

Started by Ayush Tiwari3 days ago1 messageshackers

Thread notes

1 note#refactor
hackorum-bot#refactor
hackorum-bot
2 days ago

@global #refactor

#refactor
Jump to latest
#1Ayush Tiwari
ayushtiwari.slg01@gmail.com

Hi,

In the thread about incremental backups after a timeline switch [1]/messages/by-id/CAHGQGwHgE=cC6K-jQzD4EtE5n_GPSGFOt3G3JAEiZggAyA1jTA@mail.gmail.com,
Fujii-san suggested sharing the filtering logic between GetWalSummaries()
and FilterWalSummaries() for v20.

Since f549ecd2660, both functions make the same timeline and LSN checks.
The attached patch puts those checks in one place (atleast it will make
sure we do not diverge again).

Thoughts?

[1]: /messages/by-id/CAHGQGwHgE=cC6K-jQzD4EtE5n_GPSGFOt3G3JAEiZggAyA1jTA@mail.gmail.com
/messages/by-id/CAHGQGwHgE=cC6K-jQzD4EtE5n_GPSGFOt3G3JAEiZggAyA1jTA@mail.gmail.com

Regards,
Ayush

Attachments:

t259852_1
v1-0001-Share-WAL-summary-filtering-logic.patchapplication/octet-stream; name=v1-0001-Share-WAL-summary-filtering-logic.patchDownload+30-20