summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/documentsourcetests.cpp
diff options
context:
space:
mode:
authorJ. Rassi <rassi@10gen.com>2016-06-22 16:26:09 -0400
committerJ. Rassi <rassi@10gen.com>2016-06-27 16:04:32 -0400
commitcd9cef182e0e9046df6233380350c5009278f8aa (patch)
tree4df7783260743419214afbe34c3b69f6dfe19836 /src/mongo/dbtests/documentsourcetests.cpp
parentabf863ca0f05b7d9db4f2c92b89dcfdff45572f1 (diff)
downloadmongo-cd9cef182e0e9046df6233380350c5009278f8aa.tar.gz
SERVER-24703 Improved DBClientWithCommands index creation method
C++ driver SHAs cherry-picked (with modifications) into this commit: d67f5b5
Diffstat (limited to 'src/mongo/dbtests/documentsourcetests.cpp')
-rw-r--r--src/mongo/dbtests/documentsourcetests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/documentsourcetests.cpp b/src/mongo/dbtests/documentsourcetests.cpp
index 4118fa78c07..973629cdabe 100644
--- a/src/mongo/dbtests/documentsourcetests.cpp
+++ b/src/mongo/dbtests/documentsourcetests.cpp
@@ -278,7 +278,7 @@ public:
class IndexScanProvidesSortOnKeys : public Base {
public:
void run() {
- client.ensureIndex(nss.ns(), BSON("a" << 1));
+ client.createIndex(nss.ns(), BSON("a" << 1));
createSource(BSON("a" << 1));
ASSERT_EQ(source()->getOutputSorts().size(), 1U);
@@ -289,7 +289,7 @@ public:
class ReverseIndexScanProvidesSort : public Base {
public:
void run() {
- client.ensureIndex(nss.ns(), BSON("a" << -1));
+ client.createIndex(nss.ns(), BSON("a" << -1));
createSource(BSON("a" << -1));
ASSERT_EQ(source()->getOutputSorts().size(), 1U);
@@ -300,7 +300,7 @@ public:
class CompoundIndexScanProvidesMultipleSorts : public Base {
public:
void run() {
- client.ensureIndex(nss.ns(), BSON("a" << 1 << "b" << -1));
+ client.createIndex(nss.ns(), BSON("a" << 1 << "b" << -1));
createSource(BSON("a" << 1 << "b" << -1));
ASSERT_EQ(source()->getOutputSorts().size(), 2U);