- Notifications
You must be signed in to change notification settings - Fork28
Commit3b682df
committed
Simplify the way changes to full_page_writes are logged.
It's harmless to do full page writes even when not strictly necessary, sowhen turning full_page_writes on, we can set the global flag first, and thencall XLogInsert. Likewise, when turning it off, we can write the WAL recordfirst, and then clear the flag. This way XLogInsert doesn't need any specialhandling of the XLOG_FPW_CHANGE record type. XLogInsert is complicatedenough already, so anything we can keep away from there is a good thing.Actually I don't think the atomicity of the shared memory flag matters,anyway, because we only write the XLOG_FPW_CHANGE at the end of recovery,when there are no concurrent WAL insertions going on. But might as well makeit safe, in case we allow changing full_page_writes on the fly in thefuture.1 parent2127aac commit3b682df
1 file changed
+25
-35
lines changedLines changed: 25 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
731 | 731 |
| |
732 | 732 |
| |
733 | 733 |
| |
734 |
| - | |
735 |
| - | |
| 734 | + | |
736 | 735 |
| |
737 | 736 |
| |
738 | 737 |
| |
| |||
746 | 745 |
| |
747 | 746 |
| |
748 | 747 |
| |
749 |
| - | |
| 748 | + | |
| 749 | + | |
750 | 750 |
| |
751 |
| - | |
| 751 | + | |
752 | 752 |
| |
753 |
| - | |
754 |
| - | |
755 |
| - | |
756 |
| - | |
757 |
| - | |
758 |
| - | |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
763 |
| - | |
764 |
| - | |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 | 753 |
| |
774 | 754 |
| |
775 | 755 |
| |
| |||
1232 | 1212 |
| |
1233 | 1213 |
| |
1234 | 1214 |
| |
1235 |
| - | |
1236 |
| - | |
1237 |
| - | |
1238 |
| - | |
1239 |
| - | |
1240 |
| - | |
1241 |
| - | |
1242 |
| - | |
1243 |
| - | |
1244 | 1215 |
| |
1245 | 1216 |
| |
1246 | 1217 |
| |
| |||
8517 | 8488 |
| |
8518 | 8489 |
| |
8519 | 8490 |
| |
| 8491 | + | |
| 8492 | + | |
| 8493 | + | |
| 8494 | + | |
| 8495 | + | |
| 8496 | + | |
| 8497 | + | |
| 8498 | + | |
| 8499 | + | |
| 8500 | + | |
| 8501 | + | |
| 8502 | + | |
| 8503 | + | |
| 8504 | + | |
| 8505 | + | |
| 8506 | + | |
8520 | 8507 |
| |
8521 | 8508 |
| |
8522 | 8509 |
| |
| |||
8532 | 8519 |
| |
8533 | 8520 |
| |
8534 | 8521 |
| |
8535 |
| - | |
| 8522 | + | |
| 8523 | + | |
| 8524 | + | |
8536 | 8525 |
| |
8537 | 8526 |
| |
8538 |
| - | |
| 8527 | + | |
8539 | 8528 |
| |
8540 | 8529 |
| |
| 8530 | + | |
8541 | 8531 |
| |
8542 | 8532 |
| |
8543 | 8533 |
| |
|
0 commit comments
Comments
(0)