Skip to content

Commit

Permalink
feat(tianmu): stonedb namespace to tianmu (stoneatom#337)
Browse files Browse the repository at this point in the history
[summary]
1. Change all engine stonedb to tianmu
2. Change SDB to tianmu
3. Also include mysql-test
4. Change file magic number to TianmuTB
  • Loading branch information
hustjieke authored and xiaoguangye committed Aug 11, 2022
1 parent 55d4898 commit 0b334e0
Show file tree
Hide file tree
Showing 719 changed files with 4,958 additions and 4,960 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-compile-mtr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ jobs:
sudo mkdir -p /stonedb57/install/log
sudo chown -R mysql:mysql /stonedb57
cd /stonedb57/install/mysql-test
sudo ./mysql-test-run.pl --suite=stonedb --nowarnings --force --nocheck-testcases
sudo ./mysql-test-run.pl --suite=tianmu --nowarnings --force --nocheck-testcases
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pull_request_rules:
actions:
comment:
message: |
This pull request's title is not fulfill the requirements. @{{author}} please update it :point_down:.
This pull request's title should follow requirements next. @{{author}} please check it :point_down:.
Valid format:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ INCLUDE(configure.cmake)

# Common defines and includes
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
ADD_DEFINITIONS(-DSTONEDB)
ADD_DEFINITIONS(-DTIANMU)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}/extra/rapidjson/include
Expand Down
4 changes: 2 additions & 2 deletions client/mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ int main(int argc,char *argv[])
#endif

my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,&argc,&argv))
#else
if (load_defaults("my",load_default_groups,&argc,&argv))
Expand Down Expand Up @@ -1941,7 +1941,7 @@ static void usage(int version)
}
}
my_print_help(my_long_options);
#if defined(STONEDB)
#if defined(TIANMU)
print_defaults(MYSQL_CONFIG_NAME, load_default_groups);
#else
print_defaults("my", load_default_groups);
Expand Down
4 changes: 2 additions & 2 deletions client/mysqladmin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ int main(int argc,char *argv[])
MY_INIT(argv[0]);
mysql_init(&mysql);
my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,&argc,&argv))
#else
if (load_defaults("my",load_default_groups,&argc,&argv))
Expand Down Expand Up @@ -1297,7 +1297,7 @@ static void usage(void)
}
my_print_help(my_long_options);
my_print_variables(my_long_options);
#if defined(STONEDB)
#if defined(TIANMU)
print_defaults(MYSQL_CONFIG_NAME,load_default_groups);
#else
print_defaults("my",load_default_groups);
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlbinlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3382,7 +3382,7 @@ int main(int argc, char** argv)
buff_ev= new Buff_ev(PSI_NOT_INSTRUMENTED);

my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME, load_default_groups, &argc, &argv))
#else
if (load_defaults("my", load_default_groups, &argc, &argv))
Expand Down
4 changes: 2 additions & 2 deletions client/mysqldump.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static void usage(void)
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Dumping structure and contents of MySQL databases and tables.");
short_usage_sub();
#if defined(STONEDB)
#if defined(TIANMU)
print_defaults(MYSQL_CONFIG_NAME,load_default_groups);
#else
print_defaults("my",load_default_groups);
Expand Down Expand Up @@ -1017,7 +1017,7 @@ static int get_options(int *argc, char ***argv)

md_result_file= stdout;
my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,argc,argv))
#else
if (load_defaults("my",load_default_groups,argc,argv))
Expand Down
4 changes: 2 additions & 2 deletions client/mysqlimport.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ read the text file directly. In other cases the client will open the text\n\
file. The SQL command 'LOAD DATA INFILE' is used to import the rows.\n");

printf("\nUsage: %s [OPTIONS] database textfile...",my_progname);
#if defined(STONEDB)
#if defined(TIANMU)
print_defaults(MYSQL_CONFIG_NAME,load_default_groups);
#else
print_defaults("my",load_default_groups);
Expand Down Expand Up @@ -669,7 +669,7 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);

my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,&argc,&argv))
#else
if (load_defaults("my",load_default_groups,&argc,&argv))
Expand Down
4 changes: 2 additions & 2 deletions client/mysqlshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);

my_getopt_use_args_separator= TRUE;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,&argc,&argv))
#else
if (load_defaults("my",load_default_groups,&argc,&argv))
Expand Down Expand Up @@ -314,7 +314,7 @@ If no database is given then all matching databases are shown.\n\
If no table is given, then all matching tables in database are shown.\n\
If no column is given, then all matching columns and column types in table\n\
are shown.");
#if defined(STONEDB)
#if defined(TIANMU)
print_defaults(MYSQL_CONFIG_NAME,load_default_groups);
#else
print_defaults("my",load_default_groups);
Expand Down
2 changes: 1 addition & 1 deletion client/mysqltest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7362,7 +7362,7 @@ get_one_option(int optid, const struct my_option *opt, char *argument)

int parse_args(int argc, char **argv)
{
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME,load_default_groups,&argc,&argv))
#else
if (load_defaults("my",load_default_groups,&argc,&argv))
Expand Down
2 changes: 1 addition & 1 deletion include/my_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ typedef char my_bool; /* Small bool */
/* Macros for converting *constants* to the right type */
#define MYF(v) (myf) (v)

//STONEDB UPGRADE
//TIANMU UPGRADE
#ifndef USING_X
#define reg1 register
#endif
Expand Down
2 changes: 1 addition & 1 deletion install_scripts/my.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ loose-performance-schema-consumer-thread-instrumentation=ON

binlog-direct-non-transactional-updates

default-storage-engine=stonedb
default-storage-engine=tianmu
#use_stat_tables=preferably

# here, at the end of [mysqld] group mtr will automatically disable
Expand Down
2 changes: 1 addition & 1 deletion libmysqld/lib_sql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ int init_embedded_server(int argc, char **argv, char **groups)

orig_argc= *argcp;
orig_argv= *argvp;
#if defined(STONEDB)
#if defined(TIANMU)
if (load_defaults(MYSQL_CONFIG_NAME, (const char **)groups, argcp, argvp))
#else
if (load_defaults("my", (const char **)groups, argcp, argvp))
Expand Down
2 changes: 1 addition & 1 deletion libmysqld/libmysqld.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
{
mysql_read_default_options(&mysql->options,
(mysql->options.my_cnf_file ?
#if defined(STONEDB)
#if defined(TIANMU)
mysql->options.my_cnf_file : MYSQL_CONFIG_NAME),
#else
mysql->options.my_cnf_file : "my"),
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/include/default_mysqld.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ binlog-direct-non-transactional-updates

loose-show-compatibility-56=ON

stonedb_insert_delayed = 0
stonedb_ini_allowmysqlquerypath=1
tianmu_insert_delayed = 0
tianmu_ini_allowmysqlquerypath=1
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions mysql-test/suite/stonedb/r/issue410.result

This file was deleted.

Loading

0 comments on commit 0b334e0

Please sign in to comment.