[CDRIVER-103] FindAndModify C Driver Created: 11/Nov/11 Updated: 11/Sep/19 Resolved: 23/Mar/12 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Jan-Olof Hellstrand | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | commands | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 64 bit |
||
| Description |
|
Data: CODE: bson cmd; ; bson_init( &cmd ); bson_append_start_object( &cmd, "query" ); bson_append_start_object( &cmd, "update" ); bson_append_start_object( &cmd, "fields" ); if( mongo_run_command( conn, "config", &cmd, &out ) == MONGO_OK ) } bson_print( &out) above printouts; value : 3 ok : 1 1.000000 Question: I dont understand why an ego object is returned in out bson object. |
| Comments |
| Comment by Kyle Banker [ 23/Nov/11 ] |
|
Returning the lastErrorObject is the standard server behavior. |
| Comment by Jan-Olof Hellstrand [ 23/Nov/11 ] |
|
Sorry, a typo. It should say :"I dont understand why an the lastErrorObject object is returned in the out bson object." |
| Comment by Kyle Banker [ 22/Nov/11 ] |
|
What do you mean when you say 'ego object'? |