Skip to content

Commit 1e5a9dc

Browse files
committed
sql: support primary key
1 parent dd23441 commit 1e5a9dc

File tree

6 files changed

+309
-169
lines changed

6 files changed

+309
-169
lines changed

sql/script/start_mysql.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BIN_DIR=`pwd`
44
ROOT_DIR=$BIN_DIR/..
55

66
export LD_LIBRARY_PATH=$ROOT_DIR/lib/plugin:$LD_LIBRARY_PATH
7+
cp -f $ROOT_DIR/lib/plugin/tera.flag /tmp/tera.flag
78
nohup \
89
./mysqld --port=8806 --user=$USER \
910
--datadir=$ROOT_DIR/data \
@@ -16,6 +17,7 @@ nohup \
1617
--plugin-dir=$ROOT_DIR/lib/plugin \
1718
--plugin-load="ha_tera.so;libtera.so" \
1819
--old_passwords=2 \
19-
--gdb --core-file --debug \
20+
--gdb --core-file \
21+
--debug=d:t:i:o,$ROOT_DIR/log/mysqld.trace \
2022
&> $ROOT_DIR/log/stderr &
2123

sql/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
ADD_DEFINITIONS(-DMYSQL_SERVER)
1717
SET(CMAKE_CXX_FLAGS "-L. -ltera")
1818
SET(TERA_PLUGIN_DYNAMIC "ha_tera")
19-
SET(TERA_SOURCES ha_tera.cc ha_tera.h ha_tera_util.cc ha_tera_util.h)
19+
SET(TERA_SOURCES ha_tera.cc ha_tera.h ha_tera_util.cc ha_tera_util.h ha_tera_format.cc ha_tera_format.h)
2020
MYSQL_ADD_PLUGIN(tera ${TERA_SOURCES} STORAGE_ENGINE DEFAULT MODULE_ONLY RECOMPILE_FOR_EMBEDDED)

0 commit comments

Comments
 (0)