summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/index_entry_comparison.cpp
diff options
context:
space:
mode:
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