Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
221daac4
Commit
221daac4
authored
Oct 15, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
e16ce7c3
7bb3501f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
5 deletions
+16
-5
libmysql_r/Makefile.am
libmysql_r/Makefile.am
+1
-0
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+2
-0
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
+2
-2
mysql-test/t/innodb_mysql.test
mysql-test/t/innodb_mysql.test
+2
-1
sql/Makefile.am
sql/Makefile.am
+1
-0
sql/sql_plugin.cc
sql/sql_plugin.cc
+8
-2
No files found.
libmysql_r/Makefile.am
View file @
221daac4
...
...
@@ -41,6 +41,7 @@ link_sources:
@LN_CP_F@
$$
d/
$$
f
$$
f
;
\
done
;
\
done
echo
timestamp
>
link_sources
# Don't update the files from bitkeeper
%
::
SCCS/s.%
mysql-test/r/innodb_mysql.result
View file @
221daac4
set global innodb_support_xa=default;
set session innodb_support_xa=default;
SET SESSION STORAGE_ENGINE = InnoDB;
drop table if exists t1,t2,t3,t1m,t1i,t2m,t2i,t4;
create table t1 (
...
...
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
View file @
221daac4
...
...
@@ -51,9 +51,9 @@ DELETE FROM t2 WHERE a = 2;
--
echo
--
echo
********************
LOAD
DATA
INFILE
********************
--
exec
cp
./
suite
/
rpl
/
data
/
rpl_mixed
.
dat
$MYSQLTEST_VARDIR
/
tmp
/
--
copy_file
./
suite
/
rpl
/
data
/
rpl_mixed
.
dat
$MYSQLTEST_VARDIR
/
tmp
/
rpl_mixed
.
dat
LOAD
DATA
INFILE
'../tmp/rpl_mixed.dat'
INTO
TABLE
t1
FIELDS
TERMINATED
BY
'|'
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
rpl_mixed
.
dat
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
rpl_mixed
.
dat
SELECT
*
FROM
t1
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_check_select
.
inc
--
source
suite
/
rpl
/
include
/
rpl_mixed_clear_tables
.
inc
...
...
mysql-test/t/innodb_mysql.test
View file @
221daac4
...
...
@@ -10,5 +10,6 @@ let $engine_type= InnoDB;
let
$other_engine_type
=
MEMORY
;
# InnoDB does support FOREIGN KEYFOREIGN KEYs
let
$test_foreign_keys
=
1
;
set
global
innodb_support_xa
=
default
;
set
session
innodb_support_xa
=
default
;
--
source
include
/
mix1
.
inc
sql/Makefile.am
View file @
221daac4
...
...
@@ -161,6 +161,7 @@ link_sources:
@
LN_CP_F@
$(top_srcdir)
/sql-common/my_time.c my_time.c
rm
-f
my_user.c
@
LN_CP_F@
$(top_srcdir)
/sql-common/my_user.c my_user.c
echo
timestamp
>
link_sources
# This generates lex_hash.h
# NOTE Built sources should depend on their sources not the tool
...
...
sql/sql_plugin.cc
View file @
221daac4
...
...
@@ -181,6 +181,7 @@ class sys_var_pluginvar: public sys_var
TYPELIB
*
plugin_var_typelib
(
void
);
uchar
*
value_ptr
(
THD
*
thd
,
enum_var_type
type
,
LEX_STRING
*
base
);
bool
check
(
THD
*
thd
,
set_var
*
var
);
bool
check_default
(
enum_var_type
type
)
{
return
is_readonly
();
}
void
set_default
(
THD
*
thd
,
enum_var_type
type
);
bool
update
(
THD
*
thd
,
set_var
*
var
);
};
...
...
@@ -2168,9 +2169,11 @@ static st_bookmark *register_var(const char *plugin, const char *name,
size
=
sizeof
(
int
);
break
;
case
PLUGIN_VAR_LONG
:
case
PLUGIN_VAR_ENUM
:
size
=
sizeof
(
long
);
break
;
case
PLUGIN_VAR_LONGLONG
:
case
PLUGIN_VAR_SET
:
size
=
sizeof
(
ulonglong
);
break
;
case
PLUGIN_VAR_STR
:
...
...
@@ -2611,6 +2614,7 @@ void sys_var_pluginvar::set_default(THD *thd, enum_var_type type)
if
(
is_readonly
())
return
;
pthread_mutex_lock
(
&
LOCK_global_system_variables
);
tgt
=
real_value_ptr
(
thd
,
type
);
src
=
((
void
**
)
(
plugin_var
+
1
)
+
1
);
...
...
@@ -2627,12 +2631,14 @@ void sys_var_pluginvar::set_default(THD *thd, enum_var_type type)
if
(
!
(
plugin_var
->
flags
&
PLUGIN_VAR_THDLOCAL
)
||
type
==
OPT_GLOBAL
)
{
pthread_mutex_lock
(
&
LOCK_plugin
);
plugin_var
->
update
(
thd
,
plugin_var
,
tgt
,
src
);
pthread_mutex_unlock
(
&
LOCK_
plugin
);
pthread_mutex_unlock
(
&
LOCK_
global_system_variables
);
}
else
{
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
plugin_var
->
update
(
thd
,
plugin_var
,
tgt
,
src
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment