forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2bd49b4
committed
Don't Insert() a VFD entry until it's fully built.
Otherwise, if FDDEBUG is enabled, the debugging output fails becauseit tries to read the fileName, which isn't set up yet (and should infact always be NULL).AFAICT, this has been wrong since Berkeley. Before96bf88d,it would accidentally fail to crash on platforms where snprintf()is forgiving about being passed a NULL pointer for %s; but thefile name intended to be included in the debug output wouldn'tever have shown up.Report and fix by Greg Nancarrow. Although this is only visiblybroken in custom-made builds, it still seems worth back-patchingto all supported branches, as the FDDEBUG code is pretty uselessas it stands.Discussion:https://postgr.es/m/CAJcOf-cUDgm9qYtC_B6XrC6MktMPNRby2p61EtSGZKnfotMArw@mail.gmail.com1 parentcd9c1b3 commit2bd49b4
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1486 | 1486 |
| |
1487 | 1487 |
| |
1488 | 1488 |
| |
1489 |
| - | |
1490 |
| - | |
1491 | 1489 |
| |
1492 | 1490 |
| |
1493 | 1491 |
| |
| |||
1496 | 1494 |
| |
1497 | 1495 |
| |
1498 | 1496 |
| |
| 1497 | + | |
| 1498 | + | |
1499 | 1499 |
| |
1500 | 1500 |
| |
1501 | 1501 |
| |
|
0 commit comments
Comments
(0)