Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-31628

InnoDB reports the wrong system tablespace size on bootstrap

    XMLWordPrintable

Details

    Description

      This came up while I was preparing to test MDEV-14795 with something like the following:

      mkdir /dev/shm/data
      ./mariadbd --datadir /dev/shm/data --innodb-data-file-path=ibdata1:56G --bootstrap < /dev/null
      

      The startup message would wrongly claim the following:

      10.9 35de8326fb6ca2751c83ee7465c33347b9efeb93

      2023-07-05 13:39:58 0 [Note] InnoDB: Setting file './ibdata1' size to 0.000GiB. Physically writing the file full; Please wait ...
      2023-07-05 13:40:19 0 [Note] InnoDB: File './ibdata1' size is now 0.000GiB.
      

      This happens because of 32-bit arithmetics in SysTablespace::set_size(). All other messages that use the MDEV-27158 ib::bytes_iec seem to be correct.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.