summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorBynn Lee <bynn.lee@mongodb.com>2021-02-17 22:34:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-22 17:28:27 +0000
commit3307ba57eef2dfff9abe2413e39058ac9451ec04 (patch)
tree57a7b6a482e927176823a39a671ac9fdd832d062 /src/mongo/embedded
parentbfbf776563bf16a6a52ffcc0a69f4686953eb0a1 (diff)
downloadmongo-3307ba57eef2dfff9abe2413e39058ac9451ec04.tar.gz
SERVER-43762 tighten the overload set for BSONObjBuilder::appendNumber
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/embedded_ismaster.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/embedded/embedded_ismaster.cpp b/src/mongo/embedded/embedded_ismaster.cpp
index 94f1a557ee1..35568085720 100644
--- a/src/mongo/embedded/embedded_ismaster.cpp
+++ b/src/mongo/embedded/embedded_ismaster.cpp
@@ -76,8 +76,9 @@ public:
result.appendBool("ismaster", true);
result.appendNumber("maxBsonObjectSize", BSONObjMaxUserSize);
- result.appendNumber("maxMessageSizeBytes", MaxMessageSizeBytes);
- result.appendNumber("maxWriteBatchSize", write_ops::kMaxWriteBatchSize);
+ result.appendNumber("maxMessageSizeBytes", static_cast<long long>(MaxMessageSizeBytes));
+ result.appendNumber("maxWriteBatchSize",
+ static_cast<long long>(write_ops::kMaxWriteBatchSize));
result.appendDate("localTime", jsTime());
result.append("logicalSessionTimeoutMinutes", localLogicalSessionTimeoutMinutes);
result.appendNumber("connectionId", opCtx->getClient()->getConnectionId());