File tree Expand file tree Collapse file tree 5 files changed +0
-71
lines changed Expand file tree Collapse file tree 5 files changed +0
-71
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ New features and bug fixes:
38
38
* mongoc_gridfs_find_one_with_opts
39
39
* New helper function to include read concern in one of the above function's
40
40
options parameter: mongoc_read_concern_append.
41
- * New function mongoc_cursor_sent returns true after the first call to
42
- mongoc_cursor_next.
43
41
* mongoc_client_command no longer applies the client's read preference and
44
42
read concern by default. Same change for mongoc_database_command and
45
43
mongoc_collection_command.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1970,15 +1970,6 @@ mongoc_cursor_is_alive (const mongoc_cursor_t *cursor) /* IN */
1970
1970
}
1971
1971
1972
1972
1973
- bool
1974
- mongoc_cursor_sent (const mongoc_cursor_t * cursor ) /* IN */
1975
- {
1976
- BSON_ASSERT (cursor );
1977
-
1978
- return cursor -> sent != 0 ;
1979
- }
1980
-
1981
-
1982
1973
const bson_t *
1983
1974
mongoc_cursor_current (const mongoc_cursor_t * cursor ) /* IN */
1984
1975
{
Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ void mongoc_cursor_get_host (mongoc_cursor_t *
53
53
BSON_API
54
54
bool mongoc_cursor_is_alive (const mongoc_cursor_t * cursor );
55
55
BSON_API
56
- bool mongoc_cursor_sent (const mongoc_cursor_t * cursor );
57
- BSON_API
58
56
const bson_t * mongoc_cursor_current (const mongoc_cursor_t * cursor );
59
57
BSON_API
60
58
void mongoc_cursor_set_batch_size (mongoc_cursor_t * cursor ,
Original file line number Diff line number Diff line change @@ -1471,30 +1471,6 @@ test_n_return_find_cmd_with_opts (void)
1471
1471
}
1472
1472
1473
1473
1474
- static void
1475
- test_cursor_sent (void )
1476
- {
1477
- mongoc_client_t * client ;
1478
- mongoc_collection_t * collection ;
1479
- mongoc_cursor_t * cursor ;
1480
- const bson_t * doc ;
1481
- bson_error_t error ;
1482
-
1483
- client = test_framework_client_new ();
1484
- collection = get_test_collection (client , "test_cursor_sent" );
1485
- cursor = mongoc_collection_find_with_opts (collection , tmp_bson (NULL ),
1486
- NULL , NULL );
1487
- ASSERT (!mongoc_cursor_sent (cursor ));
1488
- mongoc_cursor_next (cursor , & doc );
1489
- ASSERT_OR_PRINT (!mongoc_cursor_error (cursor , & error ), error );
1490
- ASSERT (mongoc_cursor_sent (cursor ));
1491
-
1492
- mongoc_cursor_destroy (cursor );
1493
- mongoc_collection_destroy (collection );
1494
- mongoc_client_destroy (client );
1495
- }
1496
-
1497
-
1498
1474
void
1499
1475
test_cursor_install (TestSuite * suite )
1500
1476
{
@@ -1560,5 +1536,4 @@ test_cursor_install (TestSuite *suite)
1560
1536
test_n_return_find_cmd );
1561
1537
TestSuite_Add (suite , "/Cursor/n_return/find_cmd/with_opts" ,
1562
1538
test_n_return_find_cmd_with_opts );
1563
- TestSuite_AddLive (suite , "/Cursor/sent" , test_cursor_sent );
1564
1539
}
You can’t perform that action at this time.
0 commit comments