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
8241a5a8
Commit
8241a5a8
authored
Jan 04, 2006
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
533b18c8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
18 deletions
+18
-18
include/my_sys.h
include/my_sys.h
+2
-1
mysys/my_once.c
mysys/my_once.c
+2
-0
plugin/fulltext/Makefile.am
plugin/fulltext/Makefile.am
+3
-3
scripts/mysql_create_system_tables.sh
scripts/mysql_create_system_tables.sh
+4
-4
sql/sql_parse.cc
sql/sql_parse.cc
+7
-10
No files found.
include/my_sys.h
View file @
8241a5a8
...
...
@@ -755,8 +755,9 @@ extern void delete_dynamic_element(DYNAMIC_ARRAY *array, uint array_index);
extern
void
freeze_size
(
DYNAMIC_ARRAY
*
array
);
#define dynamic_array_ptr(array,array_index) ((array)->buffer+(array_index)*(array)->size_of_element)
#define dynamic_element(array,array_index,type) ((type)((array)->buffer) +(array_index))
#define push_dynamic(A,B) insert_dynamic(
A,B
)
#define push_dynamic(A,B) insert_dynamic(
(A),(B)
)
#define reset_dynamic(array) ((array)->elements= 0)
#define sort_dynamic(A,cmp) qsort((A)->buffer, (A)->elements, (A)->size_of_element, (cmp))
extern
my_bool
init_dynamic_string
(
DYNAMIC_STRING
*
str
,
const
char
*
init_str
,
uint
init_alloc
,
uint
alloc_increment
);
...
...
mysys/my_once.c
View file @
8241a5a8
...
...
@@ -75,6 +75,8 @@ gptr my_once_alloc(unsigned int Size, myf MyFlags)
point
=
(
gptr
)
((
char
*
)
next
+
(
next
->
size
-
next
->
left
));
next
->
left
-=
Size
;
if
(
MyFlags
&
MY_ZEROFILL
)
bzero
(
point
,
Size
);
return
(
point
);
}
/* my_once_alloc */
...
...
plugin/fulltext/Makefile.am
View file @
8241a5a8
INCLUDES
=
-I
$(top_builddir)
/include
noinst_LTLIBRARIES
=
lib
mypluglib.la
lib
mypluglib_la_SOURCES
=
plugin_example.c
libmypluglib_la_LDFLAGS
=
-module
noinst_LTLIBRARIES
=
mypluglib.la
mypluglib_la_SOURCES
=
plugin_example.c
mypluglib_la_LDFLAGS
=
-module
-rpath
$(pkglibdir)
scripts/mysql_create_system_tables.sh
View file @
8241a5a8
...
...
@@ -229,7 +229,7 @@ then
c_t
=
"
$c_t
User char(16) binary DEFAULT '' NOT NULL,"
c_t
=
"
$c_t
Table_name char(64) binary DEFAULT '' NOT NULL,"
c_t
=
"
$c_t
Grantor char(77) DEFAULT '' NOT NULL,"
c_t
=
"
$c_t
Timestamp timestamp
(14)
,"
c_t
=
"
$c_t
Timestamp timestamp,"
c_t
=
"
$c_t
Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
c_t
=
"
$c_t
Column_priv set('Select','Insert','Update','References') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
c_t
=
"
$c_t
PRIMARY KEY (Host,Db,User,Table_name),"
...
...
@@ -251,7 +251,7 @@ then
c_c
=
"
$c_c
User char(16) binary DEFAULT '' NOT NULL,"
c_c
=
"
$c_c
Table_name char(64) binary DEFAULT '' NOT NULL,"
c_c
=
"
$c_c
Column_name char(64) binary DEFAULT '' NOT NULL,"
c_c
=
"
$c_c
Timestamp timestamp
(14)
,"
c_c
=
"
$c_c
Timestamp timestamp,"
c_c
=
"
$c_c
Column_priv set('Select','Insert','Update','References') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
c_c
=
"
$c_c
PRIMARY KEY (Host,Db,User,Table_name,Column_name)"
c_c
=
"
$c_c
) engine=MyISAM"
...
...
@@ -273,7 +273,7 @@ then
c_pp
=
"
$c_pp
Routine_type enum('FUNCTION','PROCEDURE') NOT NULL,"
c_pp
=
"
$c_pp
Grantor char(77) DEFAULT '' NOT NULL,"
c_pp
=
"
$c_pp
Proc_priv set('Execute','Alter Routine','Grant') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
c_pp
=
"
$c_pp
Timestamp timestamp
(14)
,"
c_pp
=
"
$c_pp
Timestamp timestamp,"
c_pp
=
"
$c_pp
PRIMARY KEY (Host,Db,User,Routine_name,Routine_type),"
c_pp
=
"
$c_pp
KEY Grantor (Grantor)"
c_pp
=
"
$c_pp
) engine=MyISAM"
...
...
@@ -743,7 +743,7 @@ fi
cat
<<
END_OF_DATA
use mysql;
set
table_typ
e=myisam;
set
storage_engin
e=myisam;
$c_d
$i_d
...
...
sql/sql_parse.cc
View file @
8241a5a8
...
...
@@ -6642,17 +6642,14 @@ static void refresh_status(void)
{
pthread_mutex_lock
(
&
LOCK_status
);
for
(
struct
show_var_st
*
ptr
=
status_vars
;
ptr
->
name
;
ptr
++
)
{
if
(
ptr
->
type
==
SHOW_LONG
)
if
(
ptr
->
type
==
SHOW_LONG
)
// note that SHOW_LONG_NOFLUSH variables are not reset
*
(
ulong
*
)
ptr
->
value
=
0
;
else
if
(
ptr
->
type
==
SHOW_LONG_STATUS
)
{
THD
*
thd
=
current_thd
;
/* We must update the global status before cleaning up the thread */
THD
*
thd
=
current_thd
;
add_to_status
(
&
global_status_var
,
&
thd
->
status_var
);
bzero
((
char
*
)
&
thd
->
status_var
,
sizeof
(
thd
->
status_var
));
}
}
/* Reset the counters of all key caches (default and named). */
process_key_caches
(
reset_key_cache_counters
);
pthread_mutex_unlock
(
&
LOCK_status
);
...
...
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