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
66dfa637
Commit
66dfa637
authored
Mar 29, 2013
by
sayantan dutta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #16402124 - MTR PROCESSES CERTAIN ASSIGNED VARDIR VALUES WRONG
parent
60388c23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
client/mysqltest.cc
client/mysqltest.cc
+9
-3
No files found.
client/mysqltest.cc
View file @
66dfa637
/* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -3326,8 +3326,12 @@ void do_remove_files_wildcard(struct st_command *command)
/* Set default wild chars for wild_compare, is changed in embedded mode */
set_wild_chars
(
1
);
uint
length
;
/* Storing the length of the path to the file, so it can be reused */
length
=
ds_file_to_remove
.
length
;
for
(
i
=
0
;
i
<
(
uint
)
dir_info
->
number_off_files
;
i
++
)
{
ds_file_to_remove
.
length
=
length
;
file
=
dir_info
->
dir_entry
+
i
;
/* Remove only regular files, i.e. no directories etc. */
/* if (!MY_S_ISREG(file->mystat->st_mode)) */
...
...
@@ -3337,8 +3341,10 @@ void do_remove_files_wildcard(struct st_command *command)
if
(
ds_wild
.
length
&&
wild_compare
(
file
->
name
,
ds_wild
.
str
,
0
))
continue
;
ds_file_to_remove
.
length
=
ds_directory
.
length
+
1
;
ds_file_to_remove
.
str
[
ds_directory
.
length
+
1
]
=
0
;
/* Not required as the var ds_file_to_remove.length already has the
length in canonnicalized form */
/* ds_file_to_remove.length= ds_directory.length + 1;
ds_file_to_remove.str[ds_directory.length + 1]= 0; */
dynstr_append
(
&
ds_file_to_remove
,
file
->
name
);
DBUG_PRINT
(
"info"
,
(
"removing file: %s"
,
ds_file_to_remove
.
str
));
error
=
my_delete
(
ds_file_to_remove
.
str
,
MYF
(
0
))
!=
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