diff options
author | Daniel Gómez Ferro <daniel.gomezferro@mongodb.com> | 2022-01-18 15:38:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-18 16:58:37 +0000 |
commit | 754ea766abe5682738764d90b0d0c1d49600774a (patch) | |
tree | ef4db95e4ade57eead6d8b3566477ad974a39350 /src/mongo/db/record_id_helpers.h | |
parent | 31a411b86fafc6ca303f697dd0a88d7e32acc483 (diff) | |
download | mongo-754ea766abe5682738764d90b0d0c1d49600774a.tar.gz |
SERVER-61260 Support collations on clustered collections
Diffstat (limited to 'src/mongo/db/record_id_helpers.h')
-rw-r--r-- | src/mongo/db/record_id_helpers.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/record_id_helpers.h b/src/mongo/db/record_id_helpers.h index 1d984c94a1e..4627d134f9b 100644 --- a/src/mongo/db/record_id_helpers.h +++ b/src/mongo/db/record_id_helpers.h @@ -33,6 +33,7 @@ #include "mongo/base/status_with.h" #include "mongo/bson/bsonobj.h" #include "mongo/db/catalog/clustered_collection_options_gen.h" +#include "mongo/db/query/collation/collator_interface.h" #include "mongo/db/storage/key_format.h" namespace mongo { @@ -49,8 +50,10 @@ StatusWith<RecordId> keyForOptime(const Timestamp& opTime); /** * For clustered collections, converts various values into a RecordId. */ -StatusWith<RecordId> keyForDoc(const BSONObj& doc, const ClusteredIndexSpec& indexSpec); -RecordId keyForElem(const BSONElement& elem); +StatusWith<RecordId> keyForDoc(const BSONObj& doc, + const ClusteredIndexSpec& indexSpec, + const CollatorInterface* collator); +RecordId keyForElem(const BSONElement& elem, const CollatorInterface* collator); RecordId keyForOID(OID oid); RecordId keyForDate(Date_t date); |