diff options
author | Jason Chan <jason.chan@mongodb.com> | 2020-01-25 02:13:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-25 02:13:38 +0000 |
commit | 27c44d402377e9b716d3106ef8fcca56dcb0de97 (patch) | |
tree | 6eb9828fd944473a284bb61bf18e140aa3bebff8 /src/mongo/db/write_concern_options.cpp | |
parent | 4748e2eb74ee89433affc78146e9d4c856529e00 (diff) | |
download | mongo-27c44d402377e9b716d3106ef8fcca56dcb0de97.tar.gz |
SERVER-45639 Use safeNumberLong() to parse wTimeout from command
Diffstat (limited to 'src/mongo/db/write_concern_options.cpp')
-rw-r--r-- | src/mongo/db/write_concern_options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/write_concern_options.cpp b/src/mongo/db/write_concern_options.cpp index 0df85b5ed93..80e1c8bd0e4 100644 --- a/src/mongo/db/write_concern_options.cpp +++ b/src/mongo/db/write_concern_options.cpp @@ -122,7 +122,7 @@ StatusWith<WriteConcernOptions> WriteConcernOptions::parse(const BSONObj& obj) { wEl = e; writeConcern.usedDefault = false; } else if (fieldName == kWTimeoutFieldName) { - wTimeout = e.numberInt(); + wTimeout = e.safeNumberLong(); writeConcern.usedDefault = false; } else if (fieldName == kWElectionIdFieldName) { // Ignore. |