summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_index.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2020-04-09 17:24:32 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-15 22:31:32 +0000
commit9ca0c11865bba19999932a57069daed84a4577ca (patch)
tree29187df784139549f1f03e2f9dd7fdb805b2fe4b /src/mongo/db/storage/wiredtiger/wiredtiger_index.h
parentda349337d17dfa6bf5e92edac92045fab84e1742 (diff)
downloadmongo-9ca0c11865bba19999932a57069daed84a4577ca.tar.gz
SERVER-46810 Hex encode collation keys and invalid UTF-8 in dup key error messages
Also changes the error message to include the index's collation, in order to help users interpret the collation keys.
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_index.h')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_index.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_index.h b/src/mongo/db/storage/wiredtiger/wiredtiger_index.h
index 5fefad39b92..dddf3dc054c 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_index.h
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_index.h
@@ -183,6 +183,7 @@ protected:
const NamespaceString _collectionNamespace;
const std::string _indexName;
const BSONObj _keyPattern;
+ const BSONObj _collation;
KVPrefix _prefix;
bool _isIdIndex;
};