Skip to content
Snippets Groups Projects
Commit 61b86142 authored by Tom Lane's avatar Tom Lane
Browse files

Modify MoveOfflineLogs/InstallXLogFileSegment to avoid O(N^2) behavior

when recycling a large number of xlog segments during checkpoint.
The former behavior searched from the same start point each time,
requiring O(checkpoint_segments^2) stat() calls to relocate all the
segments.  Instead keep track of where we stopped last time through.
parent 348f856d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment