From 9ca0c11865bba19999932a57069daed84a4577ca Mon Sep 17 00:00:00 2001 From: David Storch Date: Thu, 9 Apr 2020 17:24:32 -0400 Subject: 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. --- src/mongo/db/storage/wiredtiger/wiredtiger_index.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_index.h') 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; }; -- cgit v1.2.1