Skip to content

Commit 09d4ff4

Browse files
author
Christian Hergert
committed
cursor: be tolerant of non-64bit id field.
1 parent 69ffd47 commit 09d4ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-cursor-cursorid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ _mongoc_cursor_cursorid_next (mongoc_cursor_t *cursor,
111111
bson_iter_recurse (&iter, &child)) {
112112
while (bson_iter_next (&child)) {
113113
if (BSON_ITER_IS_KEY (&child, "id")) {
114-
cursor->rpc.reply.cursor_id = bson_iter_int64 (&child);
114+
cursor->rpc.reply.cursor_id = bson_iter_as_int64 (&child);
115115
} else if (BSON_ITER_IS_KEY (&child, "ns")) {
116116
ns = bson_iter_utf8 (&child, &cursor->nslen);
117117
bson_strncpy (cursor->ns, ns, sizeof cursor->ns);

0 commit comments

Comments
 (0)