forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf0eb83f
committed
Fix assertion failure and segmentation fault in backup code.
When a non-exclusive backup is canceled, do_pg_abort_backup() is calledand resets some variables set by pg_backup_start (pg_start_backup in v14or before). But previously it forgot to reset the session state indicatingwhether a non-exclusive backup is in progress or not in this session.This issue could cause an assertion failure when the session runningBASE_BACKUP is terminated after it executed pg_backup_start andpg_backup_stop (pg_stop_backup in v14 or before). Also it could causea segmentation fault when pg_backup_stop is called after BASE_BACKUPin the same session is canceled.This commit fixes the issue by making do_pg_abort_backup resetthat session state.Back-patch to all supported branches.Author: Fujii MasaoReviewed-by: Kyotaro Horiguchi, Masahiko Sawada, Michael Paquier, Robert HaasDiscussion:https://postgr.es/m/3374718f-9fbf-a950-6d66-d973e027f44c@oss.nttdata.com1 parent9fa00e3 commitf0eb83f
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11391 | 11391 |
| |
11392 | 11392 |
| |
11393 | 11393 |
| |
| 11394 | + | |
| 11395 | + | |
11394 | 11396 |
| |
11395 | 11397 |
| |
11396 | 11398 |
| |
|
0 commit comments
Comments
(0)