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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c7c2eacf
Commit
c7c2eacf
authored
Feb 25, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/local/home/marty/MySQL/test/mysql-5.0-ndb
parents
9905a520
4c144143
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
mysql-test/t/kill.test
mysql-test/t/kill.test
+1
-1
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+6
-6
sql/mysql_priv.h
sql/mysql_priv.h
+6
-0
sql/sql_parse.cc
sql/sql_parse.cc
+4
-6
No files found.
mysql-test/t/kill.test
View file @
c7c2eacf
...
...
@@ -44,7 +44,7 @@ select get_lock("a", 10);
connection
con2
;
let
$ID
=
`select connection_id()`
;
send
select
get_lock
(
"a"
,
10
);
--
sleep
2
--
real_sleep
2
;
connection
con1
;
disable_query_log
;
eval
kill
query
$ID
;
...
...
sql/examples/ha_archive.cc
View file @
c7c2eacf
...
...
@@ -575,7 +575,7 @@ error:
int
ha_archive
::
write_row
(
byte
*
buf
)
{
z_off_t
written
;
uint
*
ptr
,
*
end
;
uint
*
b
ptr
,
*
end
;
DBUG_ENTER
(
"ha_archive::write_row"
);
if
(
share
->
crashed
)
...
...
@@ -596,16 +596,16 @@ int ha_archive::write_row(byte * buf)
We should probably mark the table as damagaged if the record is written
but the blob fails.
*/
for
(
ptr
=
table
->
s
->
blob_field
,
end
=
ptr
+
table
->
s
->
blob_fields
;
ptr
!=
end
;
ptr
++
)
for
(
bptr
=
table
->
s
->
blob_field
,
end
=
b
ptr
+
table
->
s
->
blob_fields
;
b
ptr
!=
end
;
b
ptr
++
)
{
char
*
ptr
;
uint32
size
=
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
get_length
();
uint32
size
=
((
Field_blob
*
)
table
->
field
[
*
b
ptr
])
->
get_length
();
if
(
size
)
{
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
get_ptr
(
&
ptr
);
((
Field_blob
*
)
table
->
field
[
*
b
ptr
])
->
get_ptr
(
&
ptr
);
written
=
gzwrite
(
share
->
archive_write
,
ptr
,
(
unsigned
)
size
);
if
(
written
!=
size
)
goto
error
;
...
...
sql/mysql_priv.h
View file @
c7c2eacf
...
...
@@ -171,6 +171,12 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
#define FLUSH_TIME 0
/* Don't flush tables */
#define MAX_CONNECT_ERRORS 10 // errors before disabling host
#ifdef HAVE_INNOBASE_DB
#define IF_INNOBASE_DB(A, B) (A)
#else
#define IF_INNOBASE_DB(A, B) (B)
#endif
#if defined(__WIN__) || defined(OS2)
#define IF_WIN(A,B) (A)
#undef FLUSH_TIME
...
...
sql/sql_parse.cc
View file @
c7c2eacf
...
...
@@ -1810,9 +1810,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
TABLE_LIST
table_list
;
LEX_STRING
conv_name
;
/* Saved variable value */
#ifdef HAVE_INNOBASE_DB
my_bool
old_innodb_table_locks
=
thd
->
variables
.
innodb_table_locks
;
#endif
my_bool
old_innodb_table_locks
=
IF_INNOBASE_DB
(
thd
->
variables
.
innodb_table_locks
,
FALSE
);
statistic_increment
(
thd
->
status_var
.
com_stat
[
SQLCOM_SHOW_FIELDS
],
...
...
@@ -2340,9 +2339,8 @@ mysql_execute_command(THD *thd)
/* Locked closure of all tables */
TABLE_LIST
*
locked_tables
=
NULL
;
/* Saved variable value */
#ifdef HAVE_INNOBASE_DB
my_bool
old_innodb_table_locks
=
thd
->
variables
.
innodb_table_locks
;
#endif
my_bool
old_innodb_table_locks
=
IF_INNOBASE_DB
(
thd
->
variables
.
innodb_table_locks
,
FALSE
);
DBUG_ENTER
(
"mysql_execute_command"
);
thd
->
net
.
no_send_error
=
0
;
...
...
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