- Notifications
You must be signed in to change notification settings - Fork5
Commitb78647a
committed
Restrict infomask bits to set on multixacts
We must only set the bit(s) for the strongest lock held in the tuple;otherwise, a multixact containing members with exclusive lock andkey-share lock will behave as though only a share lock is held.This bug was introduced in commit0ac5ad5, somewhere alongdevelopment, when we allowed a singleton FOR SHARE lock to beimplemented without a MultiXact by using a multi-bit pattern.I overlooked that GetMultiXactIdHintBits() needed to be tweaked as well.Previously, we could have the bits for FOR KEY SHARE and FOR UPDATEsimultaneously set and it wouldn't cause a problem.Per report from digoal@126.com1 parent77a3082 commitb78647a
1 file changed
+37
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3269 | 3269 | | |
3270 | 3270 | | |
3271 | 3271 | | |
3272 | | - | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
3273 | 3279 | | |
3274 | 3280 | | |
3275 | 3281 | | |
| |||
3283 | 3289 | | |
3284 | 3290 | | |
3285 | 3291 | | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
3286 | 3298 | | |
3287 | 3299 | | |
3288 | 3300 | | |
| |||
5161 | 5173 | | |
5162 | 5174 | | |
5163 | 5175 | | |
| 5176 | + | |
5164 | 5177 | | |
5165 | 5178 | | |
5166 | 5179 | | |
| |||
5170 | 5183 | | |
5171 | 5184 | | |
5172 | 5185 | | |
| 5186 | + | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
5173 | 5197 | | |
5174 | 5198 | | |
5175 | 5199 | | |
5176 | | - | |
5177 | | - | |
5178 | 5200 | | |
5179 | | - | |
5180 | | - | |
5181 | 5201 | | |
5182 | | - | |
5183 | 5202 | | |
| 5203 | + | |
5184 | 5204 | | |
5185 | | - | |
5186 | 5205 | | |
5187 | 5206 | | |
| 5207 | + | |
5188 | 5208 | | |
5189 | | - | |
5190 | 5209 | | |
5191 | 5210 | | |
| 5211 | + | |
5192 | 5212 | | |
5193 | | - | |
5194 | 5213 | | |
5195 | 5214 | | |
5196 | 5215 | | |
5197 | 5216 | | |
5198 | 5217 | | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
5199 | 5227 | | |
5200 | 5228 | | |
5201 | 5229 | | |
| |||
0 commit comments
Comments
(0)