Reduce index key size on el6

tags/zabbix-5.0.3-6
Daniel Berteaud 4 years ago
parent 33ce266c17
commit b301fdf569
  1. 6
      zabbix.spec

@ -480,6 +480,12 @@ gzip database/postgresql/create.sql
gzip database/postgresql/timescaledb.sql gzip database/postgresql/timescaledb.sql
# sql files for proxyes # sql files for proxyes
%if 0%{?rhel} == 6
# MySQL on el6 doesn't support such large keys
sed -i -e \
's/CREATE INDEX `items_1` ON `items` (`hostid`,`key_`(1021));/CREATE INDEX `items_1` ON `items` (`hostid`,`key_`(900));/' \
database/mysql/schema.sql
%endif
gzip database/mysql/schema.sql gzip database/mysql/schema.sql
gzip database/postgresql/schema.sql gzip database/postgresql/schema.sql
gzip database/sqlite3/schema.sql gzip database/sqlite3/schema.sql

Loading…
Cancel
Save