summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/index_entry_comparison.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-12-09 16:00:09 -0500
committerJames Wahlin <james@mongodb.com>2018-12-12 15:02:45 -0500
commita34b0ac74038a86f22de1d70c58f2f7c51c1a42a (patch)
tree163a839fe74e0d4e7a59da99249e34277244b38a /src/mongo/db/storage/index_entry_comparison.cpp
parent056d61676f91f6da0a030347ae4b92255d752d8f (diff)
downloadmongo-a34b0ac74038a86f22de1d70c58f2f7c51c1a42a.tar.gz
SERVER-38461 Limit upsert retry to DuplicateKey violations with matching values
Diffstat (limited to 'src/mongo/db/storage/index_entry_comparison.cpp')
-rw-r--r--src/mongo/db/storage/index_entry_comparison.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/index_entry_comparison.cpp b/src/mongo/db/storage/index_entry_comparison.cpp
index 67613639633..d597cfe082c 100644
--- a/src/mongo/db/storage/index_entry_comparison.cpp
+++ b/src/mongo/db/storage/index_entry_comparison.cpp
@@ -195,7 +195,7 @@ Status buildDupKeyErrorStatus(const BSONObj& key,
}
sb << builder.obj();
- return Status(DuplicateKeyErrorInfo(keyPattern), sb.str());
+ return Status(DuplicateKeyErrorInfo(keyPattern, key), sb.str());
}
} // namespace mongo