diff --git a/dbms/src/Storages/Page/PageDefines.h b/dbms/src/Storages/Page/PageDefines.h index 46789419fbd..7feea494eb4 100644 --- a/dbms/src/Storages/Page/PageDefines.h +++ b/dbms/src/Storages/Page/PageDefines.h @@ -74,7 +74,7 @@ using PageFileIdAndLevels = std::vector; using PageSize = UInt64; -using BlobFileId = UInt32; +using BlobFileId = UInt64; using BlobFileOffset = UInt64; static constexpr BlobFileId INVALID_BLOBFILE_ID = 0; static constexpr BlobFileOffset INVALID_BLOBFILE_OFFSET = std::numeric_limits::max(); diff --git a/dbms/src/Storages/Page/V3/LogFile/LogFormat.h b/dbms/src/Storages/Page/V3/LogFile/LogFormat.h index c1151d1181f..aa273167109 100644 --- a/dbms/src/Storages/Page/V3/LogFile/LogFormat.h +++ b/dbms/src/Storages/Page/V3/LogFile/LogFormat.h @@ -56,7 +56,7 @@ static constexpr UInt32 PAYLOAD_FIELD_SIZE = sizeof(UInt16); // The checksum count begin at the `type` field in Header/RecyclableHeader static constexpr size_t CHECKSUM_START_OFFSET = Format::CHECKSUM_FIELD_SIZE + Format::PAYLOAD_FIELD_SIZE; -using LogNumberType = UInt32; +using LogNumberType = UInt64; // Header is // - checksum (`CHECKSUM_FIELD_SIZE` bytes