Permalink
Browse files

Change field names in 'createIndexes' command to match documentation

  • Loading branch information...
ps authored and bjori committed Oct 3, 2015
1 parent f357df4 commit 2c1993b36fdc98f0a7ab1319294fb66ff2a638bd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mongoc/mongoc-collection.c
@@ -760,13 +760,13 @@ _mongoc_collection_create_index_legacy (mongoc_collection_t *collection,

if (opt->default_language != def_opt->default_language) {
bson_append_utf8 (&insert,
"defaultLanguage", -1,
"default_language", -1,
opt->default_language, -1);
}

if (opt->language_override != def_opt->language_override) {
bson_append_utf8 (&insert,
"languageOverride", -1,
"language_override", -1,
opt->language_override, -1);
}

0 comments on commit 2c1993b

Please sign in to comment.