model-writtenrun 4778 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot proposed replay, write, sent, and flush wrappers for wait_for_catchup(), converting existing replay and write calls while adding the unused modes for consistency #1.
- Alvaro Herrera argued that wrappers should accept source nodes and obtain LSNs themselves to eliminate temporary variables; after Bertrand identified differing LSN modes, Alvaro proposed standardizing replay waits on flush LSNs, which Bertrand implemented while dropping the unused sent and flush wrappers #2 #3 #4 #5.
- Alvaro next proposed eliminating the write wrapper and redundant source-node arguments; Bertrand identified cascading-replication cases requiring a distinct source node, so they settled on an optional source node defaulting to $self for replay waits #6 #7 #8.
- Bertrand submitted that optional-node refinement while retaining the write wrapper, explaining that wait_for_catchup defaults to replay mode rather than write mode #9.
- Alvaro committed the replay portion of #9 with expanded documentation and small test cleanups as a1acdacada, explaining that the write wrapper offered little simplification and was unnecessary for the motivating work #10.
- Bertrand accepted the narrower landing, leaving the replay helper committed and the other proposed wrappers dropped, with no further work requested in the thread #11.