@@ -88,7 +88,7 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> InternalPlanner::deleteWith
88
88
89
89
auto executor =
90
90
PlanExecutor::make (opCtx, std::move (ws), std::move (root), collection, yieldPolicy);
91
- invariantOK (executor.getStatus ());
91
+ invariant (executor.getStatus ());
92
92
return std::move (executor.getValue ());
93
93
}
94
94
@@ -117,7 +117,7 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> InternalPlanner::indexScan(
117
117
118
118
auto executor =
119
119
PlanExecutor::make (opCtx, std::move (ws), std::move (root), collection, yieldPolicy);
120
- invariantOK (executor.getStatus ());
120
+ invariant (executor.getStatus ());
121
121
return std::move (executor.getValue ());
122
122
}
123
123
@@ -147,7 +147,7 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> InternalPlanner::deleteWith
147
147
148
148
auto executor =
149
149
PlanExecutor::make (opCtx, std::move (ws), std::move (root), collection, yieldPolicy);
150
- invariantOK (executor.getStatus ());
150
+ invariant (executor.getStatus ());
151
151
return std::move (executor.getValue ());
152
152
}
153
153
@@ -166,7 +166,7 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> InternalPlanner::updateWith
166
166
167
167
auto executor =
168
168
PlanExecutor::make (opCtx, std::move (ws), std::move (root), collection, yieldPolicy);
169
- invariantOK (executor.getStatus ());
169
+ invariant (executor.getStatus ());
170
170
return std::move (executor.getValue ());
171
171
}
172
172
0 commit comments