Skip to content

Commit 66a4364

Browse files
committed
CDRIVER-1687 Remove autoIndexId handling
1 parent 2d085cf commit 66a4364

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/mongoc/mongoc-database.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,15 +1013,6 @@ mongoc_database_create_collection (mongoc_database_t *database,
10131013
capped = bson_iter_bool (&iter);
10141014
}
10151015

1016-
if (bson_iter_init_find (&iter, opts, "autoIndexId") &&
1017-
!BSON_ITER_HOLDS_BOOL (&iter)) {
1018-
bson_set_error (error,
1019-
MONGOC_ERROR_COMMAND,
1020-
MONGOC_ERROR_COMMAND_INVALID_ARG,
1021-
"The argument \"autoIndexId\" must be a boolean.");
1022-
return NULL;
1023-
}
1024-
10251016
if (bson_iter_init_find (&iter, opts, "size")) {
10261017
if (!BSON_ITER_HOLDS_INT32 (&iter) &&
10271018
!BSON_ITER_HOLDS_INT64 (&iter)) {

tests/test-mongoc-database.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ test_create_collection (void)
487487
BSON_APPEND_INT32 (&options, "size", 1234);
488488
BSON_APPEND_INT32 (&options, "max", 4567);
489489
BSON_APPEND_BOOL (&options, "capped", true);
490-
BSON_APPEND_BOOL (&options, "autoIndexId", true);
491490

492491
BSON_APPEND_DOCUMENT_BEGIN(&options, "storageEngine", &storage_opts);
493492
BSON_APPEND_DOCUMENT_BEGIN(&storage_opts, "wiredTiger", &wt_opts);
@@ -551,7 +550,6 @@ test_get_collection_info (void)
551550
BSON_APPEND_INT32 (&capped_options, "max", 1024);
552551

553552
autoindexid_name = gen_collection_name ("autoindexid");
554-
BSON_APPEND_BOOL (&autoindexid_options, "autoIndexId", false);
555553

556554
noopts_name = gen_collection_name ("noopts");
557555

0 commit comments

Comments
 (0)