diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-20 15:55:59 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-20 15:55:59 +0300 |
commit | 4d4865de6f124ed0a97573bf784102077f7296e7 (patch) | |
tree | 4b76dc03f45f1e795c78f899b59e161ba3b1b669 /storage/innobase/os/os0file.cc | |
parent | 6c165b4bd69d1b9419758e8aa2b9c2958f015a98 (diff) | |
parent | 4b959bd8df18a281248c7325a61f4a79ce7691da (diff) | |
download | mariadb-git-4d4865de6f124ed0a97573bf784102077f7296e7.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'storage/innobase/os/os0file.cc')
-rw-r--r-- | storage/innobase/os/os0file.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index ae51a6d1bad..f30e42adeae 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -4569,13 +4569,17 @@ invalid: space->flags = (space->flags & FSP_FLAGS_MEM_MASK) | flags; this->size = ulint(size_bytes / psize); - space->size += this->size; + space->committed_size = space->size += this->size; } else if (space->id != TRX_SYS_SPACE || space->size_in_header) { /* If this is not the first-time open, do nothing. For the system tablespace, we always get invoked as first=false, so we detect the true first-time-open based - on size_in_header and proceed to initiailze the data. */ + on size_in_header and proceed to initialize the data. */ return true; + } else { + /* Initialize the size of predefined tablespaces + to FSP_SIZE. */ + space->committed_size = size; } ut_ad(space->free_limit == 0 || space->free_limit == free_limit); |