From cfcdc9b9b84c3d9afcbb804513bbdbd54b77b7db Mon Sep 17 00:00:00 2001 From: Ian Boros Date: Thu, 10 Oct 2019 19:24:59 +0000 Subject: SERVER-42560 Simplify passing of metadata between DocumentSource and PlanStage --- src/mongo/db/commands/test_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/commands/test_commands.cpp') 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(nullptr), &end); if (PlanExecutor::ADVANCED != state) { uasserted(ErrorCodes::IllegalOperation, str::stream() << "invalid n, collection contains fewer than " << n -- cgit v1.2.1