summaryrefslogtreecommitdiffstats
path: root/storage/innobase/include/fsp0sysspace.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
commita2a2e32c02643a0cec111511220227703fda1cd5 (patch)
tree69cc2b631234c2a8e026b9cd4d72676c61c594df /storage/innobase/include/fsp0sysspace.h
parentReleasing progress-linux version 1:10.11.8-1~progress7.99u1. (diff)
downloadmariadb-a2a2e32c02643a0cec111511220227703fda1cd5.tar.xz
mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.zip
Merging upstream version 1:11.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'storage/innobase/include/fsp0sysspace.h')
-rw-r--r--storage/innobase/include/fsp0sysspace.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/storage/innobase/include/fsp0sysspace.h b/storage/innobase/include/fsp0sysspace.h
index 514f3fdb..3ff0e864 100644
--- a/storage/innobase/include/fsp0sysspace.h
+++ b/storage/innobase/include/fsp0sysspace.h
@@ -119,6 +119,12 @@ public:
return(m_auto_extend_last_file);
}
+ /** @return auto shrink */
+ bool can_auto_shrink() const
+ {
+ return m_auto_shrink;
+ }
+
/** Set the last file size.
@param[in] size the size to set */
void set_last_file_size(uint32_t size)
@@ -144,6 +150,16 @@ public:
}
/**
+ @return user specified tablespace size */
+ uint32_t get_min_size() const
+ {
+ uint32_t full_size= 0;
+ for (uint32_t i= 0; i < m_files.size(); i++)
+ full_size+= m_files.at(i).m_user_param_size;
+ return full_size;
+ }
+
+ /**
@return next increment size */
uint32_t get_increment() const;
@@ -251,6 +267,10 @@ private:
/** if false, then sanity checks are still pending */
bool m_sanity_checks_done;
+
+ /** Shrink the system tablespace if the value is
+ enabled */
+ bool m_auto_shrink;
};
/* GLOBAL OBJECTS */