diff options
Diffstat (limited to 'src/mongo/db/storage/key_string.h')
-rw-r--r-- | src/mongo/db/storage/key_string.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/storage/key_string.h b/src/mongo/db/storage/key_string.h index 87a6b74c742..2484ac83b1d 100644 --- a/src/mongo/db/storage/key_string.h +++ b/src/mongo/db/storage/key_string.h @@ -62,12 +62,6 @@ static StringData keyStringVersionToString(Version version) { static const Ordering ALL_ASCENDING = Ordering::make(BSONObj()); -// Encode the size of a RecordId binary string using up to 4 bytes, 7 bits per byte. -// This supports encoding sizes that fit into 28 bits, which largely covers the -// maximum BSON size. -static const int kRecordIdStrEncodedSizeMaxBytes = 4; -MONGO_STATIC_ASSERT(RecordId::kBigStrMaxSize < 1 << (7 * kRecordIdStrEncodedSizeMaxBytes)); - /** * Encodes info needed to restore the original BSONTypes from a KeyString. They cannot be * stored in place since we don't want them to affect the ordering (1 and 1.0 compare as |