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
ea459bc9
Commit
ea459bc9
authored
Apr 27, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled query cache in mysqldump queries
parent
10135e11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
Docs/manual.texi
Docs/manual.texi
+2
-0
client/mysqldump.c
client/mysqldump.c
+8
-5
No files found.
Docs/manual.texi
View file @
ea459bc9
...
...
@@ -48956,6 +48956,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet
@item
Query cache disabled in mysqldump.
@item
Boolean fulltext search weighting scheme changed to something more reasonable.
@item
Fixed bug in boolean fulltext search, that caused MySQL to ignore queries of
client/mysqldump.c
View file @
ea459bc9
...
...
@@ -64,6 +64,9 @@
#define SHOW_EXTRA 5
#define QUOTE_CHAR '`'
/* Size of buffer for dump's select query */
#define QUERY_LENGTH 1536
static
char
*
add_load_option
(
char
*
ptr
,
const
char
*
object
,
const
char
*
statement
);
...
...
@@ -909,7 +912,7 @@ static char *field_escape(char *to,const char *from,uint length)
*/
static
void
dumpTable
(
uint
numFields
,
char
*
table
)
{
char
query
[
1024
],
*
end
,
buff
[
256
],
table_buff
[
NAME_LEN
+
3
];
char
query
[
QUERY_LENGTH
],
*
end
,
buff
[
256
],
table_buff
[
NAME_LEN
+
3
];
MYSQL_RES
*
res
;
MYSQL_FIELD
*
field
;
MYSQL_ROW
row
;
...
...
@@ -926,7 +929,8 @@ static void dumpTable(uint numFields, char *table)
my_delete
(
filename
,
MYF
(
0
));
/* 'INTO OUTFILE' doesn't work, if
filename wasn't deleted */
to_unix_path
(
filename
);
sprintf
(
query
,
"SELECT * INTO OUTFILE '%s'"
,
filename
);
sprintf
(
query
,
"SELECT /*!40001 SQL_NO_CACHE */ * INTO OUTFILE '%s'"
,
filename
);
end
=
strend
(
query
);
if
(
replace
)
end
=
strmov
(
end
,
" REPLACE"
);
...
...
@@ -957,7 +961,8 @@ static void dumpTable(uint numFields, char *table)
if
(
!
opt_xml
)
fprintf
(
md_result_file
,
"
\n
--
\n
-- Dumping data for table '%s'
\n
--
\n
"
,
table
);
sprintf
(
query
,
"SELECT * FROM %s"
,
quote_name
(
table
,
table_buff
));
sprintf
(
query
,
"SELECT /*!40001 SQL_NO_CACHE */ * FROM %s"
,
quote_name
(
table
,
table_buff
));
if
(
where
)
{
if
(
!
opt_xml
)
...
...
@@ -1420,8 +1425,6 @@ int main(int argc, char **argv)
return
(
first_error
);
}
}
if
(
mysql_query
(
sock
,
"SET SQL_QUERY_CACHE_TYPE=OFF"
)
&&
verbose
)
fprintf
(
stderr
,
"-- Can't disable query cache (not supported).
\n
"
);
if
(
opt_alldbs
)
dump_all_databases
();
/* Only one database and selected table(s) */
...
...
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