mirror of https://github.com/mongodb/mongo
Revert "SERVER-84420: Remove unnecessary tasserts."
This reverts commit dd42977758.
This commit is contained in:
parent
dd42977758
commit
e84abb9212
|
|
@ -132,6 +132,7 @@ public:
|
||||||
* Should not be used once execution has begun.
|
* Should not be used once execution has begun.
|
||||||
*/
|
*/
|
||||||
std::vector<boost::intrusive_ptr<Expression>>& getMutableIdExpressions() {
|
std::vector<boost::intrusive_ptr<Expression>>& getMutableIdExpressions() {
|
||||||
|
tassert(7020503, "Can't mutate _id fields after initialization", !_executionStarted);
|
||||||
return _idExpressions;
|
return _idExpressions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -147,6 +148,8 @@ public:
|
||||||
* Should not be used once execution has begun.
|
* Should not be used once execution has begun.
|
||||||
*/
|
*/
|
||||||
std::vector<AccumulationStatement>& getMutableAccumulationStatements() {
|
std::vector<AccumulationStatement>& getMutableAccumulationStatements() {
|
||||||
|
tassert(
|
||||||
|
7020504, "Can't mutate accumulated fields after initialization", !_executionStarted);
|
||||||
return _accumulatedFields;
|
return _accumulatedFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue