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
49bc0a57
Commit
49bc0a57
authored
Mar 27, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add static qualifiers to some symbols in ha_innodb.cc that are not
referenced from other modules.
parent
2870d22f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
handler/ha_innodb.cc
handler/ha_innodb.cc
+12
-12
handler/ha_innodb.h
handler/ha_innodb.h
+0
-1
No files found.
handler/ha_innodb.cc
View file @
49bc0a57
...
@@ -308,13 +308,13 @@ bool innobase_show_status(handlerton *hton, THD* thd,
...
@@ -308,13 +308,13 @@ bool innobase_show_status(handlerton *hton, THD* thd,
/*********************************************************************
/*********************************************************************
Commits a transaction in an InnoDB database. */
Commits a transaction in an InnoDB database. */
static
void
void
innobase_commit_low
(
innobase_commit_low
(
/*================*/
/*================*/
trx_t
*
trx
);
/* in: transaction handle */
trx_t
*
trx
);
/* in: transaction handle */
SHOW_VAR
innodb_status_variables
[]
=
{
static
SHOW_VAR
innodb_status_variables
[]
=
{
{
"buffer_pool_pages_data"
,
{
"buffer_pool_pages_data"
,
(
char
*
)
&
export_vars
.
innodb_buffer_pool_pages_data
,
SHOW_LONG
},
(
char
*
)
&
export_vars
.
innodb_buffer_pool_pages_data
,
SHOW_LONG
},
{
"buffer_pool_pages_dirty"
,
{
"buffer_pool_pages_dirty"
,
...
@@ -1762,7 +1762,7 @@ innobase_flush_logs(handlerton *hton)
...
@@ -1762,7 +1762,7 @@ innobase_flush_logs(handlerton *hton)
/*********************************************************************
/*********************************************************************
Commits a transaction in an InnoDB database. */
Commits a transaction in an InnoDB database. */
static
void
void
innobase_commit_low
(
innobase_commit_low
(
/*================*/
/*================*/
...
@@ -1950,6 +1950,7 @@ innobase_commit(
...
@@ -1950,6 +1950,7 @@ innobase_commit(
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
#if 0
/* TODO: put the
/* TODO: put the
MySQL-4.1 functionality back to 5.0. This is needed to get InnoDB Hot Backup
MySQL-4.1 functionality back to 5.0. This is needed to get InnoDB Hot Backup
to work. */
to work. */
...
@@ -1962,7 +1963,7 @@ transaction inside InnoDB but does NOT flush InnoDB log files to disk.
...
@@ -1962,7 +1963,7 @@ transaction inside InnoDB but does NOT flush InnoDB log files to disk.
To flush you have to call innobase_commit_complete(). We have separated
To flush you have to call innobase_commit_complete(). We have separated
flushing to eliminate the bottleneck of LOCK_log in log.cc which disabled
flushing to eliminate the bottleneck of LOCK_log in log.cc which disabled
InnoDB's group commit capability. */
InnoDB's group commit capability. */
static
int
int
innobase_report_binlog_offset_and_commit(
innobase_report_binlog_offset_and_commit(
/*=====================================*/
/*=====================================*/
...
@@ -1992,7 +1993,6 @@ innobase_report_binlog_offset_and_commit(
...
@@ -1992,7 +1993,6 @@ innobase_report_binlog_offset_and_commit(
return(0);
return(0);
}
}
#if 0
/***********************************************************************
/***********************************************************************
This function stores the binlog offset and flushes logs. */
This function stores the binlog offset and flushes logs. */
static
static
...
@@ -2023,12 +2023,11 @@ innobase_store_binlog_offset_and_flush_log(
...
@@ -2023,12 +2023,11 @@ innobase_store_binlog_offset_and_flush_log(
/* Synchronous flush of the log buffer to disk */
/* Synchronous flush of the log buffer to disk */
log_buffer_flush_to_disk();
log_buffer_flush_to_disk();
}
}
#endif
/*********************************************************************
/*********************************************************************
This is called after MySQL has written the binlog entry for the current
This is called after MySQL has written the binlog entry for the current
transaction. Flushes the InnoDB log files to disk if required. */
transaction. Flushes the InnoDB log files to disk if required. */
static
int
int
innobase_commit_complete(
innobase_commit_complete(
/*=====================*/
/*=====================*/
...
@@ -2054,6 +2053,7 @@ innobase_commit_complete(
...
@@ -2054,6 +2053,7 @@ innobase_commit_complete(
return(0);
return(0);
}
}
#endif
/*********************************************************************
/*********************************************************************
Rolls back a transaction or the latest SQL statement. */
Rolls back a transaction or the latest SQL statement. */
...
@@ -2107,7 +2107,7 @@ innobase_rollback(
...
@@ -2107,7 +2107,7 @@ innobase_rollback(
/*********************************************************************
/*********************************************************************
Rolls back a transaction */
Rolls back a transaction */
static
int
int
innobase_rollback_trx
(
innobase_rollback_trx
(
/*==================*/
/*==================*/
...
@@ -6521,7 +6521,7 @@ ha_innobase::transactional_table_lock(
...
@@ -6521,7 +6521,7 @@ ha_innobase::transactional_table_lock(
/****************************************************************************
/****************************************************************************
Here we export InnoDB status variables to MySQL. */
Here we export InnoDB status variables to MySQL. */
static
int
int
innodb_export_status
()
innodb_export_status
()
/*==================*/
/*==================*/
...
@@ -6627,7 +6627,7 @@ innodb_show_status(
...
@@ -6627,7 +6627,7 @@ innodb_show_status(
/****************************************************************************
/****************************************************************************
Implements the SHOW MUTEX STATUS command. . */
Implements the SHOW MUTEX STATUS command. . */
static
bool
bool
innodb_mutex_show_status
(
innodb_mutex_show_status
(
/*=====================*/
/*=====================*/
...
@@ -7716,12 +7716,12 @@ static int show_innodb_vars(THD *thd, SHOW_VAR *var, char *buff)
...
@@ -7716,12 +7716,12 @@ static int show_innodb_vars(THD *thd, SHOW_VAR *var, char *buff)
return
0
;
return
0
;
}
}
SHOW_VAR
innodb_status_variables_export
[]
=
{
static
SHOW_VAR
innodb_status_variables_export
[]
=
{
{
"Innodb"
,
(
char
*
)
&
show_innodb_vars
,
SHOW_FUNC
},
{
"Innodb"
,
(
char
*
)
&
show_innodb_vars
,
SHOW_FUNC
},
{
NullS
,
NullS
,
SHOW_LONG
}
{
NullS
,
NullS
,
SHOW_LONG
}
};
};
struct
st_mysql_storage_engine
innobase_storage_engine
=
st
atic
st
ruct
st_mysql_storage_engine
innobase_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
innobase
)
mysql_declare_plugin
(
innobase
)
...
...
handler/ha_innodb.h
View file @
49bc0a57
...
@@ -191,7 +191,6 @@ class ha_innobase: public handler
...
@@ -191,7 +191,6 @@ class ha_innobase: public handler
uint
table_changes
);
uint
table_changes
);
};
};
extern
SHOW_VAR
innodb_status_variables
[];
extern
ulong
innobase_fast_shutdown
;
extern
ulong
innobase_fast_shutdown
;
extern
ulong
innobase_large_page_size
;
extern
ulong
innobase_large_page_size
;
extern
long
innobase_mirrored_log_groups
,
innobase_log_files_in_group
;
extern
long
innobase_mirrored_log_groups
,
innobase_log_files_in_group
;
...
...
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