• Magnus Hagander's avatar
    Refactor receivelog.c parameters · 38c83c9b
    Magnus Hagander authored
    Much cruft had accumulated over time with a large number of parameters
    passed down between functions very deep. With this refactoring, instead
    introduce a StreamCtl structure that holds the parameters, and pass around
    a pointer to this structure instead. This makes it much easier to add or
    remove fields that are needed deeper down in the implementation without
    having to modify every function header in the file.
    
    Patch by me after much nagging from Andres
    Reviewed by Craig Ringer and Daniel Gustafsson
    38c83c9b
pg_receivexlog.c 15.3 KB