[SERVER-3284] nextSafe() doesn't check for error code from request, can get confused by accidentally storing error fields Created: 17/Jun/11 Updated: 23/Feb/17 Resolved: 23/Feb/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Greg Studer | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | cxxcopy | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
DBClientCursor::nextSafe() throws an exception if the next doc contains "$err" as the first field - probably better to keep track of when/if the error flag is thrown by a request for more data. |