Commit 227eb4e
committed
Refactor replication origin state reset helpers.
Factor out common logic for clearing replorigin_session_* variables
into a dedicated helper function, replorigin_xact_clear().
This removes duplicated assignments of these variables across multiple
call sites, and makes the intended scope of each reset explicit.
Author: Chao Li <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Reviewed-by: Ashutosh Bapat <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/CAEoWx2=pYvfRthXHTzSrOsf5_FfyY4zJyK4zV2v4W=yjUij1cA@mail.gmail.com1 parent 1fdbca1 commit 227eb4e
File tree
4 files changed
+26
-16
lines changed- src
- backend/replication/logical
- include/replication
4 files changed
+26
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1344 | 1357 | | |
1345 | 1358 | | |
1346 | 1359 | | |
| |||
1466 | 1479 | | |
1467 | 1480 | | |
1468 | 1481 | | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
| 1482 | + | |
1472 | 1483 | | |
1473 | 1484 | | |
1474 | 1485 | | |
| |||
1536 | 1547 | | |
1537 | 1548 | | |
1538 | 1549 | | |
1539 | | - | |
1540 | | - | |
| 1550 | + | |
| 1551 | + | |
1541 | 1552 | | |
1542 | 1553 | | |
1543 | 1554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
| 326 | + | |
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
5594 | 5594 | | |
5595 | 5595 | | |
5596 | 5596 | | |
5597 | | - | |
| 5597 | + | |
5598 | 5598 | | |
5599 | 5599 | | |
5600 | 5600 | | |
| |||
5865 | 5865 | | |
5866 | 5866 | | |
5867 | 5867 | | |
5868 | | - | |
| 5868 | + | |
5869 | 5869 | | |
5870 | 5870 | | |
5871 | 5871 | | |
5872 | | - | |
| 5872 | + | |
5873 | 5873 | | |
5874 | 5874 | | |
5875 | | - | |
| 5875 | + | |
5876 | 5876 | | |
5877 | | - | |
5878 | | - | |
5879 | | - | |
| 5877 | + | |
5880 | 5878 | | |
5881 | 5879 | | |
5882 | 5880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
0 commit comments