- Notifications
You must be signed in to change notification settings - Fork5
Commit9473bb9
committed
Further thoughts about temp_file_limit patch.
Move FileClose's decrement of temporary_files_size up, so that it will beexecuted even if elog() throws an error. This is reasonable since if theunlink() fails, the fact the file is still there is not our fault, and weare going to forget about it anyhow. So we won't count it againsttemp_file_limit anymore.Update fileSize and temporary_files_size correctly in FileTruncate.We probably don't have any places that truncate temp files, but fd.csurely should not assume that.1 parent23e5b16 commit9473bb9
1 file changed
+13
-4
lines changedLines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1097 | 1097 |
| |
1098 | 1098 |
| |
1099 | 1099 |
| |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1100 | 1104 |
| |
1101 | 1105 |
| |
1102 | 1106 |
| |
| |||
1133 | 1137 |
| |
1134 | 1138 |
| |
1135 | 1139 |
| |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 | 1140 |
| |
1141 | 1141 |
| |
1142 | 1142 |
| |
| |||
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 | 1449 |
| |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
1450 | 1459 |
| |
1451 | 1460 |
| |
1452 | 1461 |
| |
|
0 commit comments
Comments
(0)