summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/biggie/biggie_kv_engine.cpp
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2018-09-10 17:53:51 -0400
committerXiangyu Yao <xiangyu.yao@mongodb.com>2018-09-13 13:24:55 -0400
commit061d13d34af2d75f1b3597b1a60478a60a97e7c7 (patch)
treea18808c119a6d24b10c4544e75b6088c7ca43b2b /src/mongo/db/storage/biggie/biggie_kv_engine.cpp
parentacc2f4f010aee30505c0fab0c46d5faee84390d9 (diff)
downloadmongo-061d13d34af2d75f1b3597b1a60478a60a97e7c7.tar.gz
SERVER-37070 Improve duplicate key error messages for all storage engines
Diffstat (limited to 'src/mongo/db/storage/biggie/biggie_kv_engine.cpp')
-rw-r--r--src/mongo/db/storage/biggie/biggie_kv_engine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/storage/biggie/biggie_kv_engine.cpp b/src/mongo/db/storage/biggie/biggie_kv_engine.cpp
index b99d45ccd1c..7c79a822d03 100644
--- a/src/mongo/db/storage/biggie/biggie_kv_engine.cpp
+++ b/src/mongo/db/storage/biggie/biggie_kv_engine.cpp
@@ -94,7 +94,11 @@ Status KVEngine::createSortedDataInterface(OperationContext* opCtx,
mongo::SortedDataInterface* KVEngine::getSortedDataInterface(OperationContext* opCtx,
StringData ident,
const IndexDescriptor* desc) {
- return new SortedDataInterface(Ordering::make(desc->keyPattern()), desc->unique(), ident);
+ return new SortedDataInterface(Ordering::make(desc->keyPattern()),
+ desc->unique(),
+ ident,
+ desc->parentNS(),
+ desc->indexName());
}