forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5257b9b
committed
Close the file descriptor in ApplyLogicalMappingFile
The function was forgetting to close the file descriptor, resultingin failures like this: ERROR: 53000: exceeded maxAllocatedDescs (492) while trying to open file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b" LOCATION: OpenTransientFile, fd.c:2161Simply close the file at the end, and backpatch to 9.4 (where logicaldecoding was introduced). While at it, fix a nearby typo.Discussion:https://www.postgresql.org/message-id/flat/738a590a-2ce5-9394-2bef-7b1caad89b37%402ndquadrant.com1 parentc2a2e33 commit5257b9b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3328 | 3328 | | |
3329 | 3329 | | |
3330 | 3330 | | |
| 3331 | + | |
| 3332 | + | |
3331 | 3333 | | |
3332 | 3334 | | |
3333 | 3335 | | |
3334 | 3336 | | |
3335 | | - | |
| 3337 | + | |
3336 | 3338 | | |
3337 | 3339 | | |
3338 | 3340 | | |
| |||
0 commit comments
Comments
(0)