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
4465539a
Commit
4465539a
authored
Mar 23, 2001
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with FLUSH TABLES when using temporary tables
Docs/manual.texi: Fixed typos
parent
4ec76c1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
Docs/manual.texi
Docs/manual.texi
+3
-3
sql/sql_base.cc
sql/sql_base.cc
+2
-11
No files found.
Docs/manual.texi
View file @
4465539a
...
...
@@ -21486,7 +21486,7 @@ aborting the write.
@item @code{open_files_limit}
If this is not 0, then @code{mysqld} will use this value to reserve file
descriptors to use with @code{
g
etrlimit()}. If this value is 0 then
descriptors to use with @code{
s
etrlimit()}. If this value is 0 then
@code{mysqld} will reserve @code{max_connections*5} or
@code{max_connections + table_cache*2} (whichever is larger) number of
files. You should try increasing this if @code{mysqld} gives you the
...
...
@@ -42652,8 +42652,8 @@ MySQL 3.23 version).
@item
Fixed buffer overflow bug when writing a certain error message.
@item
Added usage of @code{
getrlimit()} on Linux to get @code{-O
--open-files-limit=#} to work on Linux.
Added usage of @code{
setrlimit()} on Linux to get
@code{-O
--open-files-limit=#} to work on Linux.
@item
Added new @code{mysqld} variable: @code{bdb_version}.
@item
sql/sql_base.cc
View file @
4465539a
...
...
@@ -32,8 +32,6 @@
TABLE
*
unused_tables
;
/* Used by mysql_test */
HASH
open_cache
;
/* Used by mysql_test */
static
void
reset_query_id_on_temp_tables
(
THD
*
thd
);
static
int
open_unireg_entry
(
THD
*
thd
,
TABLE
*
entry
,
const
char
*
db
,
const
char
*
name
,
const
char
*
alias
,
bool
locked
);
static
bool
insert_fields
(
THD
*
thd
,
TABLE_LIST
*
tables
,
const
char
*
table_name
,
...
...
@@ -1314,13 +1312,6 @@ static int open_unireg_entry(THD *thd, TABLE *entry, const char *db,
DBUG_RETURN
(
1
);
}
static
void
reset_query_id_on_temp_tables
(
THD
*
thd
)
{
for
(
TABLE
*
tmp
=
thd
->
temporary_tables
;
tmp
;
tmp
=
tmp
->
next
)
tmp
->
query_id
=
0
;
}
/*****************************************************************************
** open all tables in list
*****************************************************************************/
...
...
@@ -1348,13 +1339,13 @@ int open_tables(THD *thd,TABLE_LIST *start)
pthread_mutex_lock
(
&
LOCK_open
);
// if query_id is not reset, we will get an error
// re-opening a temp table
reset_query_id_on_temp_tables
(
thd
);
thd
->
version
=
refresh_version
;
TABLE
**
prev_table
=
&
thd
->
open_tables
;
bool
found
=
0
;
for
(
TABLE_LIST
*
tmp
=
start
;
tmp
;
tmp
=
tmp
->
next
)
{
if
(
tmp
->
table
)
/* Close normal (not temporary) changed tables */
if
(
tmp
->
table
&&
!
tmp
->
table
->
tmp_table
)
{
if
(
tmp
->
table
->
version
!=
refresh_version
||
!
tmp
->
table
->
db_stat
)
...
...
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