diff options
Diffstat (limited to 'src/mongo/db/storage/key_string.cpp')
-rw-r--r-- | src/mongo/db/storage/key_string.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/storage/key_string.cpp b/src/mongo/db/storage/key_string.cpp index 96c94000ba1..173febc1313 100644 --- a/src/mongo/db/storage/key_string.cpp +++ b/src/mongo/db/storage/key_string.cpp @@ -463,11 +463,11 @@ void BuilderBase<BufferT>::appendRecordId(RecordId loc) { // big-endian order. This does not encode negative RecordIds to give maximum space to // positive RecordIds which are the only ones that are allowed to be stored in an index. - int64_t raw = loc.repr(); + int64_t raw = loc.as<int64_t>(); if (raw < 0) { - // Note: we encode RecordId::min() and RecordId() the same which is ok, as they are - // never stored so they will never be compared to each other. - invariant(raw == RecordId::min().repr()); + // Note: we encode RecordId::min<int64_t>() and RecordId() the same which is ok, as they + // are never stored so they will never be compared to each other. + invariant(raw == RecordId::min<int64_t>().as<int64_t>()); raw = 0; } const uint64_t value = static_cast<uint64_t>(raw); |