MT#57270 Add final commit to sql dump

To speed up loading of the dump we use 'autocommit=0' in the header of
sql dump. So add final 'commit'.

Change-Id: Iaf8dd6dde16d64a288460e00e47605b029b5d0c2
mr11.4
Mykola Malkov 2 years ago
parent bee375ae8b
commit 38db6c11c7

@ -102,6 +102,7 @@ for schema in "${schemes[@]}"; do
-S "${mariadb_dir}/mysqld.sock" \
| sed -r "s/'[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2} [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}'/NOW()/g" \
>> "${schema}.sql"
echo "COMMIT;" >> "${schema}.sql"
echo "Done"
done

Loading…
Cancel
Save