- Notifications
You must be signed in to change notification settings - Fork5
Commit1f6d8b9
committed
Buffer manager modifications to keep a local buffer-dirtied bit as well
as a shared dirtybit for each shared buffer. The shared dirtybit stillcontrols writing the buffer, but the local bit controls whether we needto fsync the buffer's file. This arrangement fixes a bug that allowedsome required fsyncs to be missed, and should improve performance as well.For more info see my post of same date on pghackers.1 parent9c38a8d commit1f6d8b9
File tree
13 files changed
+951
-431
lines changed- src
- backend
- access/transam
- catalog
- storage
- buffer
- file
- smgr
- include
- catalog
- storage
13 files changed
+951
-431
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
642 | 642 |
| |
643 | 643 |
| |
644 | 644 |
| |
645 |
| - | |
| 645 | + | |
646 | 646 |
| |
647 | 647 |
| |
648 | 648 |
| |
| |||
658 | 658 |
| |
659 | 659 |
| |
660 | 660 |
| |
661 |
| - | |
| 661 | + | |
662 | 662 |
| |
663 | 663 |
| |
664 | 664 |
| |
| |||
759 | 759 |
| |
760 | 760 |
| |
761 | 761 |
| |
762 |
| - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
763 | 766 |
| |
764 | 767 |
| |
765 | 768 |
| |
|
Lines changed: 68 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
32 | 36 |
| |
33 |
| - | |
34 | 37 |
| |
35 | 38 |
| |
36 | 39 |
| |
37 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 |
| |
39 |
| - | |
| 44 | + | |
40 | 45 |
| |
41 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
42 | 51 |
| |
43 | 52 |
| |
44 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
45 | 107 |
| |
46 | 108 |
| |
47 | 109 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 |
| |
72 | 74 |
| |
73 | 75 |
| |
| |||
247 | 249 |
| |
248 | 250 |
| |
249 | 251 |
| |
250 |
| - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
251 | 255 |
| |
252 | 256 |
| |
253 | 257 |
| |
|
0 commit comments
Comments
(0)