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
ea3d5418
Commit
ea3d5418
authored
Jul 27, 2005
by
georg@lmy002.wdf.sap.corp
Browse files
Options
Browse Files
Download
Plain Diff
Merge grichter@bk-internal.mysql.com:/home/bk/mysql-5.0
into lmy002.wdf.sap.corp:/home/georg/work/mysql/prod/mysql-5.0
parents
5ac378ba
e676faa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
extra/replace.c
extra/replace.c
+9
-3
sql/sql_prepare.cc
sql/sql_prepare.cc
+4
-0
No files found.
extra/replace.c
View file @
ea3d5418
...
...
@@ -1053,12 +1053,18 @@ static int convert_file(REPLACE *rep, my_string name)
int
error
;
FILE
*
in
,
*
out
;
char
dir_buff
[
FN_REFLEN
],
tempname
[
FN_REFLEN
];
char
link_name
[
FN_REFLEN
],
*
org_name
=
name
;
File
temp_file
;
DBUG_ENTER
(
"convert_file"
);
if
(
!
(
in
=
my_fopen
(
name
,
O_RDONLY
,
MYF
(
MY_WME
))))
/* check if name is a symlink */
#ifdef HAVE_READLINK
org_name
=
(
!
my_disable_symlinks
&&
!
my_readlink
(
link_name
,
name
,
MYF
(
0
)))
?
link_name
:
name
;
#endif
if
(
!
(
in
=
my_fopen
(
org_name
,
O_RDONLY
,
MYF
(
MY_WME
))))
DBUG_RETURN
(
1
);
dirname_part
(
dir_buff
,
name
);
dirname_part
(
dir_buff
,
org_
name
);
if
((
temp_file
=
create_temp_file
(
tempname
,
dir_buff
,
"PR"
,
O_WRONLY
,
MYF
(
MY_WME
)))
<
0
)
{
...
...
@@ -1075,7 +1081,7 @@ static int convert_file(REPLACE *rep, my_string name)
my_fclose
(
in
,
MYF
(
0
));
my_fclose
(
out
,
MYF
(
0
));
if
(
updated
&&
!
error
)
my_redel
(
name
,
tempname
,
MYF
(
MY_WME
|
MY_LINK_WARNING
));
my_redel
(
org_
name
,
tempname
,
MYF
(
MY_WME
|
MY_LINK_WARNING
));
else
my_delete
(
tempname
,
MYF
(
MY_WME
));
if
(
!
silent
&&
!
error
)
...
...
sql/sql_prepare.cc
View file @
ea3d5418
...
...
@@ -2079,6 +2079,10 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
reset_stmt_params
(
stmt
);
}
log_slow_statement
(
thd
);
/* Prevent from second logging in the end of dispatch_command */
thd
->
enable_slow_log
=
FALSE
;
thd
->
set_statement
(
&
stmt_backup
);
thd
->
lock_id
=
&
thd
->
main_lock_id
;
thd
->
current_arena
=
thd
;
...
...
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