Commit 6812330
committed
Reorganize logical replication worker disconnect code
Move the walrcv_disconnect() calls into the before_shmem_exit handler.
This makes sure the call is always made even during exit by signal, it
saves some duplicate code, and it makes the logic more similar to
walreceiver.c.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>1 parent 2d46017 commit 6812330
File tree
3 files changed
+6
-9
lines changed- src/backend/replication/logical
3 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
617 | 621 | | |
| 622 | + | |
| 623 | + | |
618 | 624 | | |
619 | 625 | | |
620 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | 1332 | | |
1334 | 1333 | | |
1335 | 1334 | | |
| |||
1344 | 1343 | | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | | - | |
1348 | 1346 | | |
1349 | 1347 | | |
1350 | 1348 | | |
| |||
1359 | 1357 | | |
1360 | 1358 | | |
1361 | 1359 | | |
1362 | | - | |
1363 | 1360 | | |
1364 | 1361 | | |
1365 | 1362 | | |
| |||
1374 | 1371 | | |
1375 | 1372 | | |
1376 | 1373 | | |
1377 | | - | |
1378 | 1374 | | |
1379 | 1375 | | |
1380 | 1376 | | |
| |||
1392 | 1388 | | |
1393 | 1389 | | |
1394 | 1390 | | |
1395 | | - | |
1396 | 1391 | | |
1397 | 1392 | | |
1398 | 1393 | | |
| |||
1407 | 1402 | | |
1408 | 1403 | | |
1409 | 1404 | | |
1410 | | - | |
1411 | 1405 | | |
1412 | 1406 | | |
1413 | 1407 | | |
| |||
1610 | 1604 | | |
1611 | 1605 | | |
1612 | 1606 | | |
1613 | | - | |
1614 | | - | |
1615 | 1607 | | |
1616 | 1608 | | |
1617 | 1609 | | |
0 commit comments