forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit30963fc
committed
Perform transaction cleanup operations in a less ad-hoc, more
principled order; in particular ensure that all shared resourcesare released before we release transaction locks. The code usedto release locks before buffer pins, which might explain an ancientnote I have about a bufmgr assertion failure I'd seen once severalyears ago, and been unable to reproduce since. (Theory: someonetrying to drop a relation might be able to reach FlushRelationBuffersbefore the last user of the relation had gotten around to droppinghis buffer pins.)1 parent68c8bce commit30963fc
1 file changed
+26
-14
lines changedLines changed: 26 additions & 14 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 |
| |
| |||
1005 | 1005 |
| |
1006 | 1006 |
| |
1007 | 1007 |
| |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1008 | 1014 |
| |
1009 | 1015 |
| |
1010 | 1016 |
| |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1011 | 1022 |
| |
1012 | 1023 |
| |
1013 | 1024 |
| |
| |||
1016 | 1027 |
| |
1017 | 1028 |
| |
1018 | 1029 |
| |
1019 |
| - | |
1020 |
| - | |
1021 | 1030 |
| |
1022 |
| - | |
1023 |
| - | |
1024 | 1031 |
| |
1025 |
| - | |
1026 |
| - | |
1027 | 1032 |
| |
| 1033 | + | |
1028 | 1034 |
| |
1029 | 1035 |
| |
1030 | 1036 |
| |
| |||
1078 | 1084 |
| |
1079 | 1085 |
| |
1080 | 1086 |
| |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1081 | 1090 |
| |
1082 | 1091 |
| |
1083 | 1092 |
| |
| |||
1109 | 1118 |
| |
1110 | 1119 |
| |
1111 | 1120 |
| |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1112 | 1126 |
| |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1113 | 1132 |
| |
1114 | 1133 |
| |
1115 | 1134 |
| |
| |||
1118 | 1137 |
| |
1119 | 1138 |
| |
1120 | 1139 |
| |
1121 |
| - | |
1122 | 1140 |
| |
1123 |
| - | |
1124 |
| - | |
1125 |
| - | |
1126 | 1141 |
| |
1127 |
| - | |
1128 |
| - | |
1129 |
| - | |
1130 | 1142 |
| |
1131 | 1143 |
| |
1132 | 1144 |
| |
|
0 commit comments
Comments
(0)