Commit 17d24ec
committed
Fixing flaky crash after 17.5 merge
The 17.5 release includes a bugfix for the smgrcode: previously
if smgropen failed, smgrclose wasn't called.
In our case we tried to retrieve the key before calling mdopen in
smgropen, which meant that the open call failed before the data
initialization in mdopen, which sometimes caused mdclose to crash.
The fix is simple: as mdopen only zero initializes some data, we
call it before trying to retrieve the principal key. This way the
failure happens after every data structure is set up properly.1 parent dee5a15 commit 17d24ec
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
254 | 258 | | |
255 | 259 | | |
256 | 260 | | |
| |||
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
264 | | - | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
0 commit comments