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
340c8a2a
Commit
340c8a2a
authored
6 years ago
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove set-but-not-used log_sys.log.state
parent
482d4da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
+0
-16
storage/innobase/include/log0log.h
storage/innobase/include/log0log.h
+0
-10
storage/innobase/log/log0log.cc
storage/innobase/log/log0log.cc
+0
-1
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+0
-5
No files found.
storage/innobase/include/log0log.h
View file @
340c8a2a
...
...
@@ -495,14 +495,6 @@ Stored in LOG_HEADER_FORMAT. */
header */
#define LOG_FILE_HDR_SIZE (4 * OS_FILE_LOG_BLOCK_SIZE)
/** The state of a log group */
enum
log_group_state_t
{
/** No corruption detected */
LOG_GROUP_OK
,
/** Corrupted */
LOG_GROUP_CORRUPTED
};
typedef
ib_mutex_t
LogSysMutex
;
typedef
ib_mutex_t
FlushOrderMutex
;
...
...
@@ -560,8 +552,6 @@ struct log_t{
ulint
format
;
/** individual log file size in bytes, including the header */
lsn_t
file_size
;
/** corruption status */
log_group_state_t
state
;
/** lsn used to fix coordinates within the log group */
lsn_t
lsn
;
/** the byte offset of the above lsn */
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/log/log0log.cc
View file @
340c8a2a
...
...
@@ -671,7 +671,6 @@ void log_t::files::create(ulint n_files)
?
LOG_HEADER_FORMAT_CURRENT
|
LOG_HEADER_FORMAT_ENCRYPTED
:
LOG_HEADER_FORMAT_CURRENT
;
file_size
=
srv_log_file_size
;
state
=
LOG_GROUP_OK
;
lsn
=
LOG_START_LSN
;
lsn_offset
=
LOG_FILE_HDR_SIZE
;
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/log/log0recv.cc
View file @
340c8a2a
...
...
@@ -834,8 +834,6 @@ recv_find_max_checkpoint_0(ulint* max_field)
*
max_field
=
field
;
max_no
=
checkpoint_no
;
log_sys
.
log
.
state
=
LOG_GROUP_OK
;
log_sys
.
log
.
lsn
=
mach_read_from_8
(
buf
+
LOG_CHECKPOINT_LSN
);
log_sys
.
log
.
lsn_offset
=
static_cast
<
ib_uint64_t
>
(
...
...
@@ -930,8 +928,6 @@ recv_find_max_checkpoint(ulint* max_field)
buf
=
log_sys
.
checkpoint_buf
;
log_sys
.
log
.
state
=
LOG_GROUP_CORRUPTED
;
log_header_read
(
0
);
/* Check the header page checksum. There was no
checksum in the first redo log format (version 0). */
...
...
@@ -998,7 +994,6 @@ recv_find_max_checkpoint(ulint* max_field)
if
(
checkpoint_no
>=
max_no
)
{
*
max_field
=
field
;
max_no
=
checkpoint_no
;
log_sys
.
log
.
state
=
LOG_GROUP_OK
;
log_sys
.
log
.
lsn
=
mach_read_from_8
(
buf
+
LOG_CHECKPOINT_LSN
);
log_sys
.
log
.
lsn_offset
=
mach_read_from_8
(
...
...
This diff is collapsed.
Click to expand it.
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