diff options
author | Ian Boros <ian.boros@mongodb.com> | 2019-10-10 19:24:59 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-10 19:24:59 +0000 |
commit | cfcdc9b9b84c3d9afcbb804513bbdbd54b77b7db (patch) | |
tree | d2ebef38763cc0a9d079c1f28847a3d7be28bd6f /src/mongo/db/commands/test_commands.cpp | |
parent | a5a158b4d78feabca56b27313c017160b9851cb7 (diff) | |
download | mongo-cfcdc9b9b84c3d9afcbb804513bbdbd54b77b7db.tar.gz |
SERVER-42560 Simplify passing of metadata between DocumentSource and PlanStage
Diffstat (limited to 'src/mongo/db/commands/test_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/test_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/test_commands.cpp b/src/mongo/db/commands/test_commands.cpp index 183d4cf4095..3e94951bb5b 100644 --- a/src/mongo/db/commands/test_commands.cpp +++ b/src/mongo/db/commands/test_commands.cpp @@ -161,7 +161,7 @@ public: opCtx, fullNs.ns(), collection, PlanExecutor::NO_YIELD, InternalPlanner::BACKWARD); for (int i = 0; i < n + 1; ++i) { - PlanExecutor::ExecState state = exec->getNext(nullptr, &end); + PlanExecutor::ExecState state = exec->getNext(static_cast<BSONObj*>(nullptr), &end); if (PlanExecutor::ADVANCED != state) { uasserted(ErrorCodes::IllegalOperation, str::stream() << "invalid n, collection contains fewer than " << n |