Skip to content

Commit 9a11d6e

Browse files
committed
housekeeping (abi/api)
int64_t cursor_ids and adding some new functions to the external abi
1 parent 8e3de2c commit 9a11d6e

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

build/autotools/versions.ldscript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,11 @@ LIBMONGOC_1.1 {
230230
mongoc_uri_get_credentials;
231231
mongoc_uri_get_mechanism_properties;
232232
} LIBMONGOC_1.0;
233+
234+
LIBMONGOC_1.2 {
235+
global:
236+
mongoc_client_kill_cursor;
237+
mongoc_cursor_get_batch_size;
238+
mongoc_cursor_get_id;
239+
mongoc_cursor_set_batch_size;
240+
} LIBMONGOC_1.1;

build/cmake/libmongoc-ssl.def

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ mongoc_client_get_read_prefs
2929
mongoc_client_get_server_status
3030
mongoc_client_get_uri
3131
mongoc_client_get_write_concern
32+
mongoc_client_kill_cursor
3233
mongoc_client_new
3334
mongoc_client_new_from_uri
3435
mongoc_client_pool_destroy
@@ -75,11 +76,14 @@ mongoc_cursor_clone
7576
mongoc_cursor_current
7677
mongoc_cursor_destroy
7778
mongoc_cursor_error
79+
mongoc_cursor_get_batch_size
7880
mongoc_cursor_get_hint
7981
mongoc_cursor_get_host
82+
mongoc_cursor_get_id
8083
mongoc_cursor_is_alive
8184
mongoc_cursor_more
8285
mongoc_cursor_next
86+
mongoc_cursor_set_batch_size
8387
mongoc_database_add_user
8488
mongoc_database_command
8589
mongoc_database_command_simple

build/cmake/libmongoc.def

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ mongoc_client_get_read_prefs
2929
mongoc_client_get_server_status
3030
mongoc_client_get_uri
3131
mongoc_client_get_write_concern
32+
mongoc_client_kill_cursor
3233
mongoc_client_new
3334
mongoc_client_new_from_uri
3435
mongoc_client_pool_destroy
@@ -73,11 +74,14 @@ mongoc_cursor_clone
7374
mongoc_cursor_current
7475
mongoc_cursor_destroy
7576
mongoc_cursor_error
77+
mongoc_cursor_get_batch_size
7678
mongoc_cursor_get_hint
7779
mongoc_cursor_get_host
80+
mongoc_cursor_get_id
7881
mongoc_cursor_is_alive
7982
mongoc_cursor_more
8083
mongoc_cursor_next
84+
mongoc_cursor_set_batch_size
8185
mongoc_database_add_user
8286
mongoc_database_command
8387
mongoc_database_command_simple

src/libmongoc.symbols

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ mongoc_client_get_read_prefs
2828
mongoc_client_get_server_status
2929
mongoc_client_get_uri
3030
mongoc_client_get_write_concern
31+
mongoc_client_kill_cursor
3132
mongoc_client_new
3233
mongoc_client_new_from_uri
3334
mongoc_client_pool_destroy
@@ -74,11 +75,14 @@ mongoc_cursor_clone
7475
mongoc_cursor_current
7576
mongoc_cursor_destroy
7677
mongoc_cursor_error
78+
mongoc_cursor_get_batch_size
7779
mongoc_cursor_get_hint
7880
mongoc_cursor_get_host
81+
mongoc_cursor_get_id
7982
mongoc_cursor_is_alive
8083
mongoc_cursor_more
8184
mongoc_cursor_next
85+
mongoc_cursor_set_batch_size
8286
mongoc_database_add_user
8387
mongoc_database_command
8488
mongoc_database_command_simple

src/mongoc/mongoc-cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ mongoc_cursor_get_hint (const mongoc_cursor_t *cursor)
10551055
return cursor->hint;
10561056
}
10571057

1058-
uint64_t
1058+
int64_t
10591059
mongoc_cursor_get_id (const mongoc_cursor_t *cursor)
10601060
{
10611061
BSON_ASSERT(cursor);

src/mongoc/mongoc-cursor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor,
4747
uint32_t batch_size);
4848
uint32_t mongoc_cursor_get_batch_size (const mongoc_cursor_t *cursor);
4949
uint32_t mongoc_cursor_get_hint (const mongoc_cursor_t *cursor);
50-
uint64_t mongoc_cursor_get_id (const mongoc_cursor_t *cursor);
50+
int64_t mongoc_cursor_get_id (const mongoc_cursor_t *cursor);
5151

5252

5353
BSON_END_DECLS

0 commit comments

Comments
 (0)