You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-17 09:41:06 +03:00
25 lines
433 B
Bash
Executable File
25 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
|
|
session=1
|
|
DB=dml
|
|
|
|
if [ -n "$1" ] ; then
|
|
session="$1"
|
|
fi
|
|
|
|
if [ -n "$2" ] ; then
|
|
DB=$2
|
|
fi
|
|
|
|
# Loop until the go7 script is done
|
|
rm -f counts.sql.log.$session
|
|
touch counts.sql.log.$session
|
|
|
|
while /bin/true; do
|
|
if [ -f stop.txt ]; then
|
|
echo "Found stop.txt. Query script $session stopping."
|
|
exit
|
|
fi
|
|
$MYSQLCMD $DB -n < counts.sql >> counts.sql.log.$session 2>&1
|
|
done
|