Skip to content

Commit a838d5b

Browse files
bjorihanumantmk
authored andcommitted
Remove confusingly useless codepath
The `failure` label starts by setting cursor->failed = true irregardless of the failure, so this isn't needed at all Closes #175
1 parent 4ebba3d commit a838d5b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mongoc/mongoc-cursor.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,6 @@ _mongoc_cursor_query (mongoc_cursor_t *cursor)
541541
}
542542

543543
if (_mongoc_cursor_unwrap_failure(cursor)) {
544-
if ((cursor->error.domain == MONGOC_ERROR_QUERY) &&
545-
(cursor->error.code == MONGOC_ERROR_QUERY_NOT_TAILABLE)) {
546-
cursor->failed = true;
547-
}
548544
GOTO (failure);
549545
}
550546

0 commit comments

Comments
 (0)