- Notifications
You must be signed in to change notification settings - Fork5
Commit38c83c9
committed
Refactor receivelog.c parameters
Much cruft had accumulated over time with a large number of parameterspassed down between functions very deep. With this refactoring, insteadintroduce a StreamCtl structure that holds the parameters, and pass arounda pointer to this structure instead. This makes it much easier to add orremove fields that are needed deeper down in the implementation withouthaving to modify every function header in the file.Patch by me after much nagging from AndresReviewed by Craig Ringer and Daniel Gustafsson1 parent73e7e49 commit38c83c9
File tree
4 files changed
+136
-136
lines changed- src/bin/pg_basebackup
4 files changed
+136
-136
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 |
| - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
379 | 389 |
| |
380 | 390 |
| |
381 | 391 |
| |
|
Lines changed: 20 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
276 | 276 |
| |
277 | 277 |
| |
278 | 278 |
| |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
283 | 284 |
| |
284 | 285 |
| |
285 | 286 |
| |
| |||
311 | 312 |
| |
312 | 313 |
| |
313 | 314 |
| |
314 |
| - | |
315 |
| - | |
| 315 | + | |
| 316 | + | |
316 | 317 |
| |
317 |
| - | |
318 |
| - | |
| 318 | + | |
| 319 | + | |
319 | 320 |
| |
320 | 321 |
| |
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
324 |
| - | |
| 325 | + | |
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
328 | 329 |
| |
329 | 330 |
| |
330 | 331 |
| |
331 | 332 |
| |
332 |
| - | |
333 |
| - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
334 | 342 |
| |
335 |
| - | |
336 |
| - | |
337 |
| - | |
| 343 | + | |
338 | 344 |
| |
339 | 345 |
| |
340 | 346 |
| |
|
0 commit comments
Comments
(0)