Skip to content

Commit

Permalink
Change BlobFileId to uint64. (#4984)
Browse files Browse the repository at this point in the history
ref #3594
  • Loading branch information
jiaqizho authored May 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 64a747a commit dc976d3
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Storages/Page/PageDefines.h
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ using PageFileIdAndLevels = std::vector<PageFileIdAndLevel>;

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<BlobFileOffset>::max();
2 changes: 1 addition & 1 deletion dbms/src/Storages/Page/V3/LogFile/LogFormat.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dc976d3

Please sign in to comment.