diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-04-26 15:06:23 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-04-27 13:19:24 -0400 |
commit | eec194e751f6c36e53c241da3a1b42fd4b9b98a1 (patch) | |
tree | 6ba88aac4aba6ba218d1e92be5e84aa514fb1a69 /src/mongo/db/pipeline/aggregation_request.h | |
parent | 2df6ea3c5b70acc3927a08690f8d42b9d35b8709 (diff) | |
download | mongo-eec194e751f6c36e53c241da3a1b42fd4b9b98a1.tar.gz |
SERVER-28983 Fix undefined behaviour for the 'aggregate' command
Diffstat (limited to 'src/mongo/db/pipeline/aggregation_request.h')
-rw-r--r-- | src/mongo/db/pipeline/aggregation_request.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mongo/db/pipeline/aggregation_request.h b/src/mongo/db/pipeline/aggregation_request.h index 1f290f26a90..14b4dad0e59 100644 --- a/src/mongo/db/pipeline/aggregation_request.h +++ b/src/mongo/db/pipeline/aggregation_request.h @@ -47,18 +47,18 @@ class Document; */ class AggregationRequest { public: - static const StringData kCommandName; - static const StringData kCursorName; - static const StringData kBatchSizeName; - static const StringData kFromRouterName; - static const StringData kPipelineName; - static const StringData kCollationName; - static const StringData kExplainName; - static const StringData kAllowDiskUseName; - static const StringData kHintName; - static const StringData kCommentName; - - static const long long kDefaultBatchSize; + static constexpr StringData kCommandName = "aggregate"_sd; + static constexpr StringData kCursorName = "cursor"_sd; + static constexpr StringData kBatchSizeName = "batchSize"_sd; + static constexpr StringData kFromRouterName = "fromRouter"_sd; + static constexpr StringData kPipelineName = "pipeline"_sd; + static constexpr StringData kCollationName = "collation"_sd; + static constexpr StringData kExplainName = "explain"_sd; + static constexpr StringData kAllowDiskUseName = "allowDiskUse"_sd; + static constexpr StringData kHintName = "hint"_sd; + static constexpr StringData kCommentName = "comment"_sd; + + static constexpr long long kDefaultBatchSize = 101; /** * Create a new instance of AggregationRequest by parsing the raw command object. Returns a |