diff options
author | Haley Connelly <haley.connelly@10gen.com> | 2019-09-10 20:03:13 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-10 20:03:13 +0000 |
commit | dbcd60ce23a3f151e689c796b266b752bebb4764 (patch) | |
tree | a5118f43a5727998fba15a43e2697a2d59115ab6 /src/mongo/db/storage/key_string.cpp | |
parent | da53ea480f56c92897f39a853b96a0201ef53812 (diff) | |
download | mongo-dbcd60ce23a3f151e689c796b266b752bebb4764.tar.gz |
SERVER-42973 Remove IndexEntryComparison::makeQueryObject
Diffstat (limited to 'src/mongo/db/storage/key_string.cpp')
-rw-r--r-- | src/mongo/db/storage/key_string.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/storage/key_string.cpp b/src/mongo/db/storage/key_string.cpp index 764bb78f04a..b8d5c2fcd10 100644 --- a/src/mongo/db/storage/key_string.cpp +++ b/src/mongo/db/storage/key_string.cpp @@ -436,18 +436,6 @@ void BuilderBase<BufferT>::_appendAllElementsForIndexing(const BSONObj& obj, while (auto elem = it.next()) { appendBSONElement(elem); dassert(elem.fieldNameSize() < 3); // fieldNameSize includes the NUL - - // IndexEntryComparison::makeQueryObject() encodes a discriminator in the first byte of - // the field name. This discriminator overrides the passed in one. Normal elements only - // have the NUL byte terminator. Entries stored in an index are not allowed to have a - // discriminator. - if (char ch = *elem.fieldName()) { - // l for less / g for greater. - invariant(ch == 'l' || ch == 'g'); - discriminator = - ch == 'l' ? Discriminator::kExclusiveBefore : Discriminator::kExclusiveAfter; - invariant(!it.more()); - } } appendDiscriminator(discriminator); } |