mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00

do REAL_EMAIL magic mysql-test/mysql-test-run.sh added show_failed_diffs mysql-test/r/bench_count_distinct.result tired of waiting :-) mysql-test/r/rpl000001.result new test results after implementing Monty's Hack (TM) mysql-test/t/bench_count_distinct.test tired of waiting mysql-test/t/rpl000001.test implemented Monty's Hack (TM) to kill a query in the middle of update without generating a table with 30,000 rows. This will also avoice the timing uncertainty
34 lines
539 B
Bash
Executable File
34 lines
539 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#shift
|
|
TO=dev@mysql.com
|
|
FROM=$USER@mysql.com
|
|
LIMIT=10000
|
|
|
|
if [ "$REAL_EMAIL" = "" ]
|
|
then
|
|
echo "Warning: you must set REAL_EMAIL in your profile"
|
|
else
|
|
FROM=$REAL_EMAIL
|
|
fi
|
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
if [ "$BK_STATUS" = OK ]
|
|
then
|
|
echo "Commit successful, notifying developers at $TO"
|
|
(
|
|
cat <<EOF
|
|
List-ID: <bk.mysql>
|
|
From: $FROM
|
|
To: $TO
|
|
Subject: bk commit
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
else
|
|
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
|
fi
|