File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -454,14 +454,15 @@ _mongoc_cursor_unwrap_failure (mongoc_cursor_t *cursor)
454
454
}
455
455
RETURN (true);
456
456
} else if (cursor -> is_command ) {
457
- if (_mongoc_rpc_reply_get_first (& cursor -> rpc .reply , & b )) {
458
- if ( bson_iter_init_find (& iter , & b , "ok" ) &&
459
- bson_iter_as_bool (& iter )) {
460
- RETURN (false);
461
- } else {
462
- _mongoc_cursor_populate_error (cursor , & b , & cursor -> error );
463
- bson_destroy (& b );
464
- RETURN (true);
457
+ if (_mongoc_rpc_reply_get_first (& cursor -> rpc .reply , & b )) {
458
+ if (bson_iter_init_find (& iter , & b , "ok" )) {
459
+ if (bson_iter_as_bool (& iter )) {
460
+ RETURN (false);
461
+ } else {
462
+ _mongoc_cursor_populate_error (cursor , & b , & cursor -> error );
463
+ bson_destroy (& b );
464
+ RETURN (true);
465
+ }
465
466
}
466
467
} else {
467
468
bson_set_error (& cursor -> error ,
You can’t perform that action at this time.
0 commit comments