Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/wtf
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wtf')
-rwxr-xr-xbin/wtf6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/wtf b/bin/wtf
index 247b3e3..b3e29a6 100755
--- a/bin/wtf
+++ b/bin/wtf
@@ -21,6 +21,8 @@ hash=$(
)"
)
+partition=$((hash % mysql_files_table_partitions))
+
result=$(
# shellcheck disable=SC2016
{
@@ -31,7 +33,11 @@ result=$(
mysql_join_binary_packages_architectures
mysql_join_binary_packages_repositories
mysql_join_binary_packages_file_providers
+ printf ' PARTITION (p%s)' \
+ "${partition}"
mysql_join_file_providers_files
+ printf ' PARTITION (p%s)' \
+ "${partition}"
printf ' WHERE `files`.`name_hash`=%s' \
"${hash}"
printf ' AND (`files`.`name`=from_base64("%s")' \