summaryrefslogtreecommitdiff
path: root/extra/innochecksum.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-07-22 11:22:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-07-22 11:22:47 +0300
commitca501ffb04246dcaa1f1d433d916d8436e30602e (patch)
tree60ba69fde916518ab478033f20714872fb1c63dc /extra/innochecksum.cc
parentcee37b5d26453538dc7830a20fa4c8da3d9285b7 (diff)
downloadmariadb-git-ca501ffb04246dcaa1f1d433d916d8436e30602e.tar.gz
MDEV-26195: Use a 32-bit data type for some tablespace fields
In the InnoDB data files, we allocate 32 bits for tablespace identifiers and page numbers as well as tablespace flags. But, in main memory data structures we allocate 32 or 64 bits, depending on the register width of the processor. Let us always use 32-bit fields to eliminate a mismatch and reduce the memory footprint on 64-bit systems.
Diffstat (limited to 'extra/innochecksum.cc')
-rw-r--r--extra/innochecksum.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/innochecksum.cc b/extra/innochecksum.cc
index 6ca68c47834..69e293a7b7a 100644
--- a/extra/innochecksum.cc
+++ b/extra/innochecksum.cc
@@ -70,7 +70,7 @@ static my_bool per_page_details;
static ulint n_merge;
static ulint physical_page_size; /* Page size in bytes on disk. */
ulong srv_page_size;
-ulong srv_page_size_shift;
+uint32_t srv_page_size_shift;
/* Current page number (0 based). */
unsigned long long cur_page_num;
/* Current space. */