summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconf/default.conf11
-rwxr-xr-xlib/mysql-functions10
2 files changed, 11 insertions, 10 deletions
diff --git a/conf/default.conf b/conf/default.conf
index efbb5b4..ff87f53 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -156,3 +156,14 @@ if [ "${master_build_server_identity}" = "${work_dir}/.ssh/id_rsa" ] && \
mkdir -p "${master_build_server_identity%/*}"
ssh-keygen -b4096 -f "${master_build_server_identity}"
fi
+
+mysql_files_table_partitions=$(
+ # shellcheck disable=SC2016
+ printf 'SHOW CREATE TABLE `files`;\n' | \
+ mysql_run_query | \
+ sed -n '
+ s/^.*PARTITIONS \([0-9]\+\) .*$/\1/
+ T
+ p
+ '
+)
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 7619c10..0625616 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1232,13 +1232,3 @@ mysql_insert_package_files_query() {
done
}
-
-mysql_files_table_partitions=$(
- printf 'SHOW CREATE TABLE `files`;\n' | \
- mysql_run_query | \
- sed -n '
- s/^.*PARTITIONS \([0-9]\+\) .*$/\1/
- T
- p
- '
-)