forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit56c7140
committed
Tweaks for SSI out-of-shared memory behavior.
If we call hash_search() with HASH_ENTER, it will bail out rather thanreturn NULL, so it's redundant to check for NULL again in the caller.Thus, in cases where we believe it's impossible for the hash table to runout of slots anyway, we can simplify the code slightly.On the flip side, in cases where it's theoretically possible to run out ofspace, we don't want to rely on dynahash.c to throw an error; instead,we pass HASH_ENTER_NULL and throw the error ourselves if a NULL comesback, so that we can provide a more descriptive error message.Kevin Grittner1 parent73d9a90 commit56c7140
1 file changed
+5
-13
lines changedLines changed: 5 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1604 | 1604 |
| |
1605 | 1605 |
| |
1606 | 1606 |
| |
1607 |
| - | |
1608 |
| - | |
1609 |
| - | |
1610 |
| - | |
1611 |
| - | |
1612 |
| - | |
| 1607 | + | |
1613 | 1608 |
| |
1614 | 1609 |
| |
1615 | 1610 |
| |
| |||
2045 | 2040 |
| |
2046 | 2041 |
| |
2047 | 2042 |
| |
2048 |
| - | |
| 2043 | + | |
2049 | 2044 |
| |
2050 | 2045 |
| |
2051 | 2046 |
| |
| |||
2060 | 2055 |
| |
2061 | 2056 |
| |
2062 | 2057 |
| |
2063 |
| - | |
| 2058 | + | |
2064 | 2059 |
| |
2065 | 2060 |
| |
2066 | 2061 |
| |
| |||
3251 | 3246 |
| |
3252 | 3247 |
| |
3253 | 3248 |
| |
3254 |
| - | |
| 3249 | + | |
3255 | 3250 |
| |
3256 | 3251 |
| |
3257 | 3252 |
| |
| |||
4301 | 4296 |
| |
4302 | 4297 |
| |
4303 | 4298 |
| |
4304 |
| - | |
4305 |
| - | |
4306 |
| - | |
4307 |
| - | |
| 4299 | + | |
4308 | 4300 |
| |
4309 | 4301 |
| |
4310 | 4302 |
| |
|
0 commit comments
Comments
(0)