summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_sort.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-03-11 06:17:41 -0800
committerGeert Bosch <geert@mongodb.com>2017-04-02 09:32:57 -0400
commit576e157c2753b9bc61c36002e323421c09bc62dc (patch)
treebc123ef55e9a325bdbfd1cae38288284278466cf /src/mongo/dbtests/query_stage_sort.cpp
parent53022d457a0610b40fea600d9d546f410be3d7ed (diff)
downloadmongo-576e157c2753b9bc61c36002e323421c09bc62dc.tar.gz
SERVER-28534 Pass collection names around as NamespaceStrings more often
Before this patch 'ns' values were often passed around as std::string or char* containing either a dbname (no '.'), a dbname with '.$cmd', or a fully qualified collection name. Instead pass either plain 'dbName' value (as string) or a fully qualified name using the actual NamespaceString type.
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_sort.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp
index f5ffa69d1e7..1bc24a40290 100644
--- a/src/mongo/dbtests/query_stage_sort.cpp
+++ b/src/mongo/dbtests/query_stage_sort.cpp
@@ -356,7 +356,7 @@ public:
// foo < limit().
BSONObj newDoc = BSON("_id" << updatedId << "foo" << limit() + 10);
OplogUpdateEntryArgs args;
- args.ns = coll->ns().ns();
+ args.nss = coll->ns();
{
WriteUnitOfWork wuow(&_opCtx);
coll->updateDocument(&_opCtx, *it, oldDoc, newDoc, false, false, NULL, &args);