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
8b074319
Commit
8b074319
authored
Mar 01, 2007
by
kostja@bodhi.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code: flush_version was never increased in the server,
therefore the logic associated with it never worked.
parent
122aed19
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
14 deletions
+8
-14
sql/ha_partition.cc
sql/ha_partition.cc
+3
-2
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/sql_base.cc
sql/sql_base.cc
+1
-7
sql/table.cc
sql/table.cc
+0
-1
sql/table.h
sql/table.h
+1
-1
No files found.
sql/ha_partition.cc
View file @
8b074319
...
...
@@ -4466,7 +4466,7 @@ void ha_partition::get_dynamic_partition_info(PARTITION_INFO *stat_info,
2) It is called from close_thread_table which in turn is called from
close_thread_tables except in the case where the tables are locked
in which case ha_commit_stmt is called instead.
It is only called from here if
flu
sh_version hasn't changed and the
It is only called from here if
refre
sh_version hasn't changed and the
table is not an old table when calling close_thread_table.
close_thread_tables is called from many places as a general clean up
function after completing a query.
...
...
@@ -4487,8 +4487,9 @@ void ha_partition::get_dynamic_partition_info(PARTITION_INFO *stat_info,
The handler will set HA_KEYREAD_ONLY in its table flags to indicate this
feature is supported.
HA_EXTRA_FLUSH:
Indication to flush tables to disk,
called at close_thread_table
to
Indication to flush tables to disk,
is supposed to be used
to
ensure disk based tables are flushed at end of query execution.
Currently is never used.
2) Parameters used by some non-MyISAM handlers
----------------------------------------------
...
...
sql/mysql_priv.h
View file @
8b074319
...
...
@@ -1558,7 +1558,7 @@ extern double log_01[32];
extern
ulonglong
log_10_int
[
20
];
extern
ulonglong
keybuff_size
;
extern
ulonglong
thd_startup_options
;
extern
ulong
refresh_version
,
flush_version
,
thread_id
;
extern
ulong
refresh_version
,
thread_id
;
extern
ulong
binlog_cache_use
,
binlog_cache_disk_use
;
extern
ulong
aborted_threads
,
aborted_connects
;
extern
ulong
delayed_insert_timeout
;
...
...
sql/mysqld.cc
View file @
8b074319
...
...
@@ -469,7 +469,7 @@ ulong open_files_limit, max_binlog_size, max_relay_log_size;
ulong
slave_net_timeout
,
slave_trans_retries
;
ulong
thread_cache_size
=
0
,
binlog_cache_size
=
0
,
max_binlog_cache_size
=
0
;
ulong
query_cache_size
=
0
;
ulong
refresh_version
,
flush_version
;
/* Increments on each reload */
ulong
refresh_version
;
/* Increments on each reload */
query_id_t
global_query_id
;
ulong
aborted_threads
,
aborted_connects
;
ulong
delayed_insert_timeout
,
delayed_insert_limit
,
delayed_queue_size
;
...
...
@@ -7015,7 +7015,7 @@ static void mysql_init_variables(void)
OPTION_QUOTE_SHOW_CREATE
|
OPTION_SQL_NOTES
);
protocol_version
=
PROTOCOL_VERSION
;
what_to_log
=
~
(
1L
<<
(
uint
)
COM_TIME
);
refresh_version
=
flush_version
=
1L
;
/* Increments on each reload */
refresh_version
=
1L
;
/* Increments on each reload */
global_query_id
=
thread_id
=
1L
;
strmov
(
server_version
,
MYSQL_SERVER_VERSION
);
myisam_recover_options_str
=
sql_mode_str
=
"OFF"
;
...
...
sql/sql_base.cc
View file @
8b074319
...
...
@@ -1142,12 +1142,7 @@ bool close_thread_table(THD *thd, TABLE **table_ptr)
}
else
{
if
(
table
->
s
->
flush_version
!=
flush_version
)
{
table
->
s
->
flush_version
=
flush_version
;
table
->
file
->
extra
(
HA_EXTRA_FLUSH
);
}
// Free memory and reset for next loop
/* Free memory and reset for next loop */
table
->
file
->
ha_reset
();
table
->
in_use
=
0
;
if
(
unused_tables
)
...
...
@@ -1777,7 +1772,6 @@ bool reopen_name_locked_table(THD* thd, TABLE_LIST* table_list)
share
=
table
->
s
;
share
->
version
=
0
;
share
->
flush_version
=
0
;
table
->
in_use
=
thd
;
check_unused
();
table
->
next
=
thd
->
open_tables
;
...
...
sql/table.cc
View file @
8b074319
...
...
@@ -120,7 +120,6 @@ TABLE_SHARE *alloc_table_share(TABLE_LIST *table_list, char *key,
share
->
normalized_path
.
length
=
path_length
;
share
->
version
=
refresh_version
;
share
->
flush_version
=
flush_version
;
/*
This constant is used to mark that no table map version has been
...
...
sql/table.h
View file @
8b074319
...
...
@@ -168,7 +168,7 @@ typedef struct st_table_share
ha_rows
min_rows
,
max_rows
;
/* create information */
ulong
avg_row_length
;
/* create information */
ulong
raid_chunksize
;
ulong
version
,
flush_version
,
mysql_version
;
ulong
version
,
mysql_version
;
ulong
timestamp_offset
;
/* Set to offset+1 of record */
ulong
reclength
;
/* Recordlength */
...
...
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