diff options
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_locf.cpp')
-rw-r--r-- | src/mongo/db/pipeline/accumulator_locf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/accumulator_locf.cpp b/src/mongo/db/pipeline/accumulator_locf.cpp index 9d7749e6a5a..9041ab97a86 100644 --- a/src/mongo/db/pipeline/accumulator_locf.cpp +++ b/src/mongo/db/pipeline/accumulator_locf.cpp @@ -64,7 +64,7 @@ Value AccumulatorLocf::getValue(bool toBeMerged) { } void AccumulatorLocf::reset() { - _lastNonNull = Value(); + _lastNonNull = Value(BSONNULL); _memUsageBytes = sizeof(*this) + _lastNonNull.getApproximateSize(); } |