[SERVER-40953] Shell history file accesses should capture errno earlier Created: 02/May/19 Updated: 29/Oct/23 Resolved: 29/May/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.13 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kevin Pulo | Assignee: | Kevin Pulo |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Sharding 2019-05-06, Sharding 2019-05-20, Sharding 2019-06-03 | ||||||||
| Participants: | |||||||||
| Description |
|
In this code
errno is captured too late — it may have been reset by the stringstream by the time errnoWithDescription() uses it. There are also a few places where closing the file in response to an error, clobbers the actual errno of interest. |
| Comments |
| Comment by Githook User [ 29/May/19 ] |
|
Author: {'name': 'Kevin Pulo', 'email': 'kevin.pulo@mongodb.com', 'username': 'devkev'}Message: |