Skip to content

Commit 8044278

Browse files
committed
add transaction payload events support
1 parent e33f435 commit 8044278

File tree

4 files changed

+242
-76
lines changed

4 files changed

+242
-76
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For the library to work correctly, the following server variables must have the
2121

2222
On ubuntu you need install some pakages:
2323

24-
sudo apt install git gcc g++ make cmake rpl libssl-dev libncurses-dev pkg-config bison
24+
sudo apt install git gcc g++ make cmake rpl libssl-dev libncurses-dev pkg-config bison 9base
2525

2626
To build the library, you need to run the **build.sh** script included in the project.
2727
This script will run the **cmake** utility for the **MySQL 8.0** distribution and after that, by calling the **rpl** utility,

build.sh

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
22

33

4+
MYSQL_SOURCE_VERSION="mysql-8.0.22"
5+
46
rpl > /dev/null 2>&1;
57
RPL_TEST_RES="$?"
68
if [ "$RPL_TEST_RES" -eq "127" ]; then
@@ -28,11 +30,37 @@ fi
2830

2931
if [ -d $CURR_DIR/mysql_source/mysql ]; then
3032

31-
echo "mysql_source/mysql present"
33+
34+
if [ -f $CURR_DIR/mysql_source/mysql/MYSQL_VERSION ]; then
35+
36+
FMSV=`cat $CURR_DIR/mysql_source/mysql/MYSQL_VERSION`
37+
38+
M_MAJOR=`echo $FMSV | awk -F " " '{ print $1 }' | awk -F "=" '{ print $2 }'`
39+
M_MINOR=`echo $FMSV | awk -F " " '{ print $2 }' | awk -F "=" '{ print $2 }'`
40+
M_PATCH=`echo $FMSV | awk -F " " '{ print $3 }' | awk -F "=" '{ print $2 }'`
41+
M_EXTRA=`echo $FMSV | awk -F " " '{ print $4 }' | awk -F "=" '{ print $2 }'`
42+
43+
M_F_VER="mysql-$M_MAJOR.$M_MINOR.$M_PATCH"
44+
##echo $M_F_VER
45+
46+
if [ "x$M_F_VER" != "x$MYSQL_SOURCE_VERSION" ]; then
47+
48+
rm -r -f $CURR_DIR/mysql_source/mysql
49+
git clone -v --branch "$MYSQL_SOURCE_VERSION" --depth 1 https://github.com/mysql/mysql-server.git mysql_source/mysql
50+
51+
52+
53+
fi
54+
55+
else
56+
57+
rm -r -f $CURR_DIR/mysql_source/mysql
58+
git clone -v --branch "$MYSQL_SOURCE_VERSION" --depth 1 https://github.com/mysql/mysql-server.git mysql_source/mysql
59+
fi
3260

3361
else
3462

35-
git clone -v --branch 'mysql-8.0.22' --depth 1 https://github.com/mysql/mysql-server.git mysql_source/mysql
63+
git clone -v --branch "$MYSQL_SOURCE_VERSION" --depth 1 https://github.com/mysql/mysql-server.git mysql_source/mysql
3664

3765
fi
3866

0 commit comments

Comments
 (0)