diff options
author | Randolph Tan <randolph@mongodb.com> | 2019-09-14 00:14:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-14 00:14:38 +0000 |
commit | 4586863653a128dc9eb5f034792481ae781f47e3 (patch) | |
tree | 63bc568d85dd7400d8a16cd4fbeb7431972edb54 /src | |
parent | 8d685772d167dd186e0036b25781fcb06f25d941 (diff) | |
download | mongo-4586863653a128dc9eb5f034792481ae781f47e3.tar.gz |
SERVER-41467 Fix interger down convertion from long long to int inside batchErrorToLastError
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/s/commands/cluster_write_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp index bc48977219d..c3d8081a816 100644 --- a/src/mongo/s/commands/cluster_write_cmd.cpp +++ b/src/mongo/s/commands/cluster_write_cmd.cpp @@ -115,7 +115,7 @@ void batchErrorToLastError(const BatchedCommandRequest& request, } const int numUpserted = response.isUpsertDetailsSet() ? response.sizeUpsertDetails() : 0; - const int numMatched = response.getN() - numUpserted; + const auto numMatched = response.getN() - numUpserted; invariant(numMatched >= 0); // Wrap upserted id in "upserted" field |