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
a3eaf4ee
Commit
a3eaf4ee
authored
Aug 15, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
8589f14d
cd0f3596
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
16 deletions
+48
-16
include/my_list.h
include/my_list.h
+1
-1
myisam/myisampack.c
myisam/myisampack.c
+8
-0
mysql-test/r/metadata.result
mysql-test/r/metadata.result
+11
-0
mysql-test/t/metadata.test
mysql-test/t/metadata.test
+12
-0
mysys/list.c
mysys/list.c
+1
-1
mysys/thr_lock.c
mysys/thr_lock.c
+2
-1
sql-common/client.c
sql-common/client.c
+3
-2
sql/mysqld.cc
sql/mysqld.cc
+5
-1
sql/sql_parse.cc
sql/sql_parse.cc
+4
-9
sql/sql_test.cc
sql/sql_test.cc
+1
-1
No files found.
include/my_list.h
View file @
a3eaf4ee
...
...
@@ -36,7 +36,7 @@ extern void list_free(LIST *root,unsigned int free_data);
extern
unsigned
int
list_length
(
LIST
*
);
extern
int
list_walk
(
LIST
*
,
list_walk_action
action
,
gptr
argument
);
#define rest(a) ((a)->next)
#define
list_
rest(a) ((a)->next)
#define list_push(a,b) (a)=list_cons((b),(a))
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); }
...
...
myisam/myisampack.c
View file @
a3eaf4ee
...
...
@@ -695,14 +695,22 @@ static int compress(PACK_MRG_INFO *mrg,char *result_table)
else
error
=
my_rename
(
new_name
,
org_name
,
MYF
(
MY_WME
));
if
(
!
error
)
{
VOID
(
my_copystat
(
temp_name
,
org_name
,
MYF
(
MY_COPYTIME
)));
if
(
tmp_dir
[
0
])
VOID
(
my_delete
(
new_name
,
MYF
(
MY_WME
)));
}
}
}
else
{
if
(
tmp_dir
[
0
])
{
error
=
my_copy
(
new_name
,
org_name
,
MYF
(
MY_WME
|
MY_HOLD_ORIGINAL_MODES
|
MY_COPYTIME
));
if
(
!
error
)
VOID
(
my_delete
(
new_name
,
MYF
(
MY_WME
)));
}
else
error
=
my_redel
(
org_name
,
new_name
,
MYF
(
MY_WME
|
MY_COPYTIME
));
}
...
...
mysql-test/r/metadata.result
View file @
a3eaf4ee
...
...
@@ -85,3 +85,14 @@ def aaa 1 1 8 20 1 N 32769 0 63
1
1
drop table t1;
create table t1 (i int);
insert into t1 values (1),(2),(3);
select * from t1 where i = 2;
drop table t1;//
affected rows: 0
affected rows: 3
info: Records: 3 Duplicates: 0 Warnings: 0
i
2
affected rows: 1
affected rows: 0
mysql-test/t/metadata.test
View file @
a3eaf4ee
...
...
@@ -49,4 +49,16 @@ drop table t1;
--
disable_metadata
#
# Bug #11688: Bad mysql_info() results in multi-results
#
--
enable_info
delimiter
//;
create
table
t1
(
i
int
);
insert
into
t1
values
(
1
),(
2
),(
3
);
select
*
from
t1
where
i
=
2
;
drop
table
t1
;
//
delimiter
;
//
--
disable_info
# End of 4.1 tests
mysys/list.c
View file @
a3eaf4ee
...
...
@@ -109,7 +109,7 @@ int list_walk(LIST *list, list_walk_action action, gptr argument)
{
if
((
error
=
(
*
action
)(
list
->
data
,
argument
)))
return
error
;
list
=
rest
(
list
);
list
=
list_
rest
(
list
);
}
return
0
;
}
mysys/thr_lock.c
View file @
a3eaf4ee
...
...
@@ -1206,7 +1206,8 @@ void thr_print_locks(void)
pthread_mutex_lock
(
&
THR_LOCK_lock
);
puts
(
"Current locks:"
);
for
(
list
=
thr_lock_thread_list
;
list
&&
count
++
<
MAX_THREADS
;
list
=
rest
(
list
))
for
(
list
=
thr_lock_thread_list
;
list
&&
count
++
<
MAX_THREADS
;
list
=
list_rest
(
list
))
{
THR_LOCK
*
lock
=
(
THR_LOCK
*
)
list
->
data
;
VOID
(
pthread_mutex_lock
(
&
lock
->
mutex
));
...
...
sql-common/client.c
View file @
a3eaf4ee
...
...
@@ -713,8 +713,9 @@ void free_old_query(MYSQL *mysql)
if
(
mysql
->
fields
)
free_root
(
&
mysql
->
field_alloc
,
MYF
(
0
));
init_alloc_root
(
&
mysql
->
field_alloc
,
8192
,
0
);
/* Assume rowlength < 8192 */
mysql
->
fields
=
0
;
mysql
->
field_count
=
0
;
/* For API */
mysql
->
fields
=
0
;
mysql
->
field_count
=
0
;
/* For API */
mysql
->
info
=
0
;
DBUG_VOID_RETURN
;
}
...
...
sql/mysqld.cc
View file @
a3eaf4ee
...
...
@@ -714,7 +714,6 @@ static void close_connections(void)
}
#endif
end_thr_alarm
(
0
);
// Abort old alarms.
end_slave
();
/*
First signal all threads that it's time to die
...
...
@@ -730,6 +729,9 @@ static void close_connections(void)
{
DBUG_PRINT
(
"quit"
,(
"Informing thread %ld that it's time to die"
,
tmp
->
thread_id
));
/* We skip slave threads on this first loop through. */
if
(
tmp
->
slave_thread
)
continue
;
tmp
->
killed
=
THD
::
KILL_CONNECTION
;
if
(
tmp
->
mysys_var
)
{
...
...
@@ -746,6 +748,8 @@ static void close_connections(void)
}
(
void
)
pthread_mutex_unlock
(
&
LOCK_thread_count
);
// For unlink from list
end_slave
();
if
(
thread_count
)
sleep
(
2
);
// Give threads time to die
...
...
sql/sql_parse.cc
View file @
a3eaf4ee
...
...
@@ -2328,16 +2328,11 @@ mysql_execute_command(THD *thd)
/*
Skip if we are in the slave thread, some table rules have been
given and the table list says the query should not be replicated.
Exceptions are:
- SET: we always execute it (e.g., SET ONE_SHOT TIME_ZONE = 'XYZ')
- DROP TEMPORARY TABLE IF EXISTS: we always execute it (otherwise we
have stale files on slave caused by exclusion of one tmp table).
Exception is DROP TEMPORARY TABLE IF EXISTS: we always execute it
(otherwise we have stale files on slave caused by exclusion of one tmp
table).
*/
if
(
lex
->
sql_command
!=
SQLCOM_SET_OPTION
&&
!
(
lex
->
sql_command
==
SQLCOM_DROP_TABLE
&&
if
(
!
(
lex
->
sql_command
==
SQLCOM_DROP_TABLE
&&
lex
->
drop_temporary
&&
lex
->
drop_if_exists
)
&&
all_tables_not_ok
(
thd
,
all_tables
))
{
...
...
sql/sql_test.cc
View file @
a3eaf4ee
...
...
@@ -370,7 +370,7 @@ static void display_table_locks(void)
VOID
(
my_init_dynamic_array
(
&
saved_table_locks
,
sizeof
(
TABLE_LOCK_INFO
),
open_cache
.
records
+
20
,
50
));
VOID
(
pthread_mutex_lock
(
&
THR_LOCK_lock
));
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
rest
(
list
))
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
list_
rest
(
list
))
{
THR_LOCK
*
lock
=
(
THR_LOCK
*
)
list
->
data
;
...
...
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