forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit794c543
committed
Fix bugs in mdsyncfiletag().
Commit3eb77eb moved a _mdfd_getseg() call from mdsync() into a newcallback function mdsyncfiletag(), but didn't get the arguments quiteright. Without the EXTENSION_DONT_CHECK_SIZE flag we fail to open asegment if lower-numbered segments have been truncated, and it wantsa block number rather than a segment number.While comparing with the older coding, also remove an unnecessaryclobbering of errno, and adjust the code in mdunlinkfiletag() toressemble the original code from mdpostckpt() more closely insteadof using an unnecessary call to smgropen().Author: Thomas MunroDiscussion:https://postgr.es/m/CA%2BhUKGL%2BYLUOA0eYiBXBfwW%2BbH5kFgh94%3DgQH0jHEJ-t5Y91wQ%40mail.gmail.com1 parentc46c85d commit794c543
1 file changed
+7
-8
lines changedLines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1266 | 1266 |
| |
1267 | 1267 |
| |
1268 | 1268 |
| |
1269 |
| - | |
1270 |
| - | |
1271 |
| - | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1272 | 1275 |
| |
1273 |
| - | |
1274 |
| - | |
1275 | 1276 |
| |
1276 |
| - | |
1277 | 1277 |
| |
1278 | 1278 |
| |
1279 | 1279 |
| |
| |||
1288 | 1288 |
| |
1289 | 1289 |
| |
1290 | 1290 |
| |
1291 |
| - | |
1292 | 1291 |
| |
1293 | 1292 |
| |
1294 | 1293 |
| |
1295 |
| - | |
| 1294 | + | |
1296 | 1295 |
| |
1297 | 1296 |
| |
1298 | 1297 |
| |
|
0 commit comments
Comments
(0)