Skip to content

Commit

Permalink
Change BlobFileId to uint64. (#4984) (#4990)
Browse files Browse the repository at this point in the history
close #4991
  • Loading branch information
ti-chi-bot authored May 24, 2022
1 parent 2bcb47a commit 336dac1
Show file tree
Hide file tree
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
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Storages/Page/V3/LogFile/LogFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 336dac1

Please sign in to comment.