diff options
author | Ian Boros <puppyofkosh@gmail.com> | 2019-04-04 19:20:35 -0400 |
---|---|---|
committer | Ian Boros <puppyofkosh@gmail.com> | 2019-04-11 18:34:10 -0400 |
commit | 502df279c7476c01758ab210728f4acc4a27a218 (patch) | |
tree | f350da86174a673c792ca99e16ae43a0319e71c8 /src/mongo/db/query/query_request.cpp | |
parent | d131d7861c73efe052c5909ae8f1452c100a461d (diff) | |
download | mongo-502df279c7476c01758ab210728f4acc4a27a218.tar.gz |
SERVER-39567 Change find min/max options to require hint
Diffstat (limited to 'src/mongo/db/query/query_request.cpp')
-rw-r--r-- | src/mongo/db/query/query_request.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/query_request.cpp b/src/mongo/db/query/query_request.cpp index ca26724a64b..4dddbb9d361 100644 --- a/src/mongo/db/query/query_request.cpp +++ b/src/mongo/db/query/query_request.cpp @@ -583,7 +583,7 @@ Status QueryRequest::validate() const { // Min and Max objects must have the same fields. if (!_min.isEmpty() && !_max.isEmpty()) { if (!_min.isFieldNamePrefixOf(_max) || (_min.nFields() != _max.nFields())) { - return Status(ErrorCodes::BadValue, "min and max must have the same field names"); + return Status(ErrorCodes::Error(51176), "min and max must have the same field names"); } } |