[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
Stepping through
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