diff options
author | James Wahlin <james.wahlin@10gen.com> | 2017-05-01 15:18:17 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2017-05-03 11:31:32 -0400 |
commit | fff7292a4dec1eb30b36dfb79f6d933fbb1df6b7 (patch) | |
tree | f2693e48a453e42b90d8c5dc01373086a4d92c98 /src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp | |
parent | 435d43b66f04fc12fdb4f1e115d1fe9558571334 (diff) | |
download | mongo-fff7292a4dec1eb30b36dfb79f6d933fbb1df6b7.tar.gz |
SERVER-28651 Pass agg Variables root doc via Expression::evaluate()
Diffstat (limited to 'src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp')
-rw-r--r-- | src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp b/src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp index 68182291d3a..eab573f737f 100644 --- a/src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp +++ b/src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp @@ -80,7 +80,7 @@ Value GranularityRounderPowersOfTwo::roundUp(Value value) { exp = Value(63 - countLeadingZeros64(number) + 1); } - return ExpressionPow::create(getExpCtx(), Value(2), exp)->evaluate(); + return ExpressionPow::create(getExpCtx(), Value(2), exp)->evaluate(Document()); } Value GranularityRounderPowersOfTwo::roundDown(Value value) { @@ -112,7 +112,7 @@ Value GranularityRounderPowersOfTwo::roundDown(Value value) { } } - return ExpressionPow::create(getExpCtx(), Value(2), exp)->evaluate(); + return ExpressionPow::create(getExpCtx(), Value(2), exp)->evaluate(Document()); } string GranularityRounderPowersOfTwo::getName() { |