summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-10-19 16:23:00 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-10-24 11:13:07 -0400
commit064ed7fab88447bd5dd6bfc19dfef4dbf89d19f9 (patch)
tree314fbceecbed08cdf005210f2d036d4e123fbbb3 /src/mongo/shell/shell_utils.cpp
parent7154b9f7c81fdda492d2536e8ef7c434356d8ac6 (diff)
downloadmongo-064ed7fab88447bd5dd6bfc19dfef4dbf89d19f9.tar.gz
SERVER-26514 Create command should take idIndex option
Diffstat (limited to 'src/mongo/shell/shell_utils.cpp')
-rw-r--r--src/mongo/shell/shell_utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp
index 654333affdc..d165ae3e004 100644
--- a/src/mongo/shell/shell_utils.cpp
+++ b/src/mongo/shell/shell_utils.cpp
@@ -174,7 +174,8 @@ BSONObj validateIndexKey(const BSONObj& a, void* data) {
BSONObj key = a[0].Obj();
// This is related to old upgrade-checking code when v:1 indexes were the latest version, hence
// always validate using v:1 rules here.
- Status indexValid = validateKeyPattern(key, IndexDescriptor::IndexVersion::kV1);
+ Status indexValid =
+ index_key_validate::validateKeyPattern(key, IndexDescriptor::IndexVersion::kV1);
if (!indexValid.isOK()) {
return BSON("" << BSON("ok" << false << "type" << indexValid.codeString() << "errmsg"
<< indexValid.reason()));