forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit11a65ee
committed
Get rid of the dynamic shared memory state file.
Instead of storing the ID of the dynamic shared memory controlsegment in a file within the data directory, store it in the maincontrol segment. This avoids a number of nasty corner cases,most seriously that doing an online backup and then using it onthe same machine (e.g. to fire up a standby) would result in thestandby clobbering all of the master's dynamic shared memorysegments.Per complaints from Heikki Linnakangas, Fujii Masao, and TomLane.1 parent0886fc6 commit11a65ee
File tree
6 files changed
+71
-166
lines changed- src
- backend
- port
- storage/ipc
- include/storage
6 files changed
+71
-166
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
421 | 422 |
| |
422 | 423 |
| |
423 | 424 |
| |
424 |
| - | |
| 425 | + | |
| 426 | + | |
425 | 427 |
| |
426 | 428 |
| |
427 | 429 |
| |
| |||
509 | 511 |
| |
510 | 512 |
| |
511 | 513 |
| |
512 |
| - | |
| 514 | + | |
| 515 | + | |
513 | 516 |
| |
514 | 517 |
| |
515 | 518 |
| |
| 519 | + | |
| 520 | + | |
516 | 521 |
| |
517 | 522 |
| |
518 | 523 |
| |
| |||
539 | 544 |
| |
540 | 545 |
| |
541 | 546 |
| |
| 547 | + | |
542 | 548 |
| |
543 | 549 |
| |
544 | 550 |
| |
| |||
554 | 560 |
| |
555 | 561 |
| |
556 | 562 |
| |
| 563 | + | |
557 | 564 |
| |
558 | 565 |
| |
559 | 566 |
| |
| |||
608 | 615 |
| |
609 | 616 |
| |
610 | 617 |
| |
| 618 | + | |
611 | 619 |
| |
612 | 620 |
| |
613 | 621 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
120 |
| - | |
| 120 | + | |
| 121 | + | |
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
| |||
245 | 246 |
| |
246 | 247 |
| |
247 | 248 |
| |
| 249 | + | |
248 | 250 |
| |
249 | 251 |
| |
250 | 252 |
| |
251 | 253 |
| |
252 | 254 |
| |
253 | 255 |
| |
| 256 | + | |
254 | 257 |
| |
255 | 258 |
| |
256 | 259 |
| |
| |||
289 | 292 |
| |
290 | 293 |
| |
291 | 294 |
| |
| 295 | + | |
292 | 296 |
| |
293 | 297 |
| |
294 | 298 |
| |
|
0 commit comments
Comments
(0)