- Notifications
You must be signed in to change notification settings - Fork5
Commite13ac55
committed
Avoid possible crash in contrib/bloom's blendscan().
It's possible to begin and end an indexscan without ever callingamrescan. contrib/bloom, unlike every other index AM, allocatedits "scan->opaque" storage at amrescan time, and thus would crashin amendscan if amrescan hadn't been called. We could fix thisby putting in a null-pointer check in blendscan, but I see no verygood reason why contrib/bloom should march to its own drummer inthis respect. Let's move that initialization to blbeginscaninstead. Per report from Jeff Janes.1 parent7c979c9 commite13ac55
1 file changed
+10
-16
lines changedLines changed: 10 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 |
| |
36 | 43 |
| |
37 | 44 |
| |
| |||
42 | 49 |
| |
43 | 50 |
| |
44 | 51 |
| |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
| 52 | + | |
55 | 53 |
| |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
| 54 | + | |
| 55 | + | |
62 | 56 |
| |
63 | 57 |
| |
64 | 58 |
| |
|
0 commit comments
Comments
(0)