summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/indexupdatetests.cpp
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@mongodb.com>2019-10-07 20:11:46 +0000
committerevergreen <evergreen@mongodb.com>2019-10-07 20:11:46 +0000
commit8784ad77c5a1e2327c5c0b9f50343e0186f6bfab (patch)
tree32180abaaab0be6d8eda0c35d74aba6d1a213e54 /src/mongo/dbtests/indexupdatetests.cpp
parent7538504cb584720c2cbbc6d44ea62d0743b41fcf (diff)
downloadmongo-8784ad77c5a1e2327c5c0b9f50343e0186f6bfab.tar.gz
SERVER-43273 Add UUID support to count and getIndexSpecs in DBClient
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r--src/mongo/dbtests/indexupdatetests.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp
index 6ceebc55c1b..244b2088119 100644
--- a/src/mongo/dbtests/indexupdatetests.cpp
+++ b/src/mongo/dbtests/indexupdatetests.cpp
@@ -532,7 +532,7 @@ public:
client.insert(_ns, BSON("a" << BSONSymbol("mySymbol")));
ASSERT_EQUALS(client.getLastErrorDetailed()["code"].numberInt(),
ErrorCodes::CannotBuildIndexKeys);
- ASSERT_EQUALS(client.count(_ns), 0U);
+ ASSERT_EQUALS(client.count(_nss), 0U);
}
};
@@ -547,7 +547,7 @@ public:
client.createIndex(_ns, indexSpec);
client.insert(_ns, BSON("a" << BSONSymbol("mySymbol")));
ASSERT(client.getLastError().empty());
- ASSERT_EQUALS(client.count(_ns), 1U);
+ ASSERT_EQUALS(client.count(_nss), 1U);
}
};
@@ -564,7 +564,7 @@ public:
client.insert(_ns, BSON("a" << BSON("b" << 99 << "c" << BSONSymbol("mySymbol"))));
ASSERT_EQUALS(client.getLastErrorDetailed()["code"].numberInt(),
ErrorCodes::CannotBuildIndexKeys);
- ASSERT_EQUALS(client.count(_ns), 0U);
+ ASSERT_EQUALS(client.count(_nss), 0U);
}
};
@@ -581,7 +581,7 @@ public:
client.insert(_ns, BSON("a" << BSON_ARRAY(99 << BSONSymbol("mySymbol"))));
ASSERT_EQUALS(client.getLastErrorDetailed()["code"].numberInt(),
ErrorCodes::CannotBuildIndexKeys);
- ASSERT_EQUALS(client.count(_ns), 0U);
+ ASSERT_EQUALS(client.count(_nss), 0U);
}
};
@@ -592,7 +592,7 @@ public:
DBDirectClient client(opCtx.get());
client.dropCollection(_ns);
client.insert(_ns, BSON("a" << BSON_ARRAY(99 << BSONSymbol("mySymbol"))));
- ASSERT_EQUALS(client.count(_ns), 1U);
+ ASSERT_EQUALS(client.count(_nss), 1U);
IndexSpec indexSpec;
indexSpec.addKey("a").addOptions(BSON("collation" << BSON("locale"
<< "fr")));