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
7bb74b65
Commit
7bb74b65
authored
Jan 02, 2004
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log0recv.h, log0recv.c:
Merge a log replay change required by ibbackup
parent
1c74cd9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
innobase/include/log0recv.h
innobase/include/log0recv.h
+2
-0
innobase/log/log0recv.c
innobase/log/log0recv.c
+16
-8
No files found.
innobase/include/log0recv.h
View file @
7bb74b65
...
...
@@ -15,6 +15,8 @@ Created 9/20/1997 Heikki Tuuri
#include "hash0hash.h"
#include "log0log.h"
extern
ibool
recv_replay_file_ops
;
/***********************************************************************
Reads the checkpoint info needed in hot backup. */
...
...
innobase/log/log0recv.c
View file @
7bb74b65
...
...
@@ -34,6 +34,11 @@ Created 9/20/1997 Heikki Tuuri
#include "dict0boot.h"
#include "fil0fil.h"
/* This is set to FALSE if the backup was originally taken with the
ibbackup --include regexp option: then we do not want to create tables in
directories which were not included */
ibool
recv_replay_file_ops
=
TRUE
;
/* Log records are stored in the hash table in chunks at most of this size;
this must be less than UNIV_PAGE_SIZE as it is stored in the buffer pool */
#define RECV_DATA_BLOCK_SIZE (MEM_MAX_ALLOC_IN_BUF - sizeof(recv_data_t))
...
...
@@ -1974,18 +1979,21 @@ recv_parse_log_recs(
||
type
==
MLOG_FILE_RENAME
||
type
==
MLOG_FILE_DELETE
))
{
#ifdef UNIV_HOTBACKUP
/* In ibbackup --apply-log, replay an .ibd file
operation, if possible; note that
fil_path_to_mysql_datadir is set in ibbackup to
point to the datadir we should use there */
if
(
recv_replay_file_ops
)
{
/* In ibbackup --apply-log, replay an .ibd file
operation, if possible; note that
fil_path_to_mysql_datadir is set in ibbackup to
point to the datadir we should use there */
if
(
NULL
==
fil_op_log_parse_or_replay
(
body
,
end_ptr
,
type
,
TRUE
,
space
))
{
fprintf
(
stderr
,
if
(
NULL
==
fil_op_log_parse_or_replay
(
body
,
end_ptr
,
type
,
TRUE
,
space
))
{
fprintf
(
stderr
,
"InnoDB: Error: file op log record of type %lu space %lu not complete in
\n
"
"InnoDB: the replay phase. Path %s
\n
"
,
(
ulint
)
type
,
space
,
(
char
*
)(
body
+
2
));
ut_a
(
0
);
ut_a
(
0
);
}
}
#endif
/* In normal mysqld crash recovery we do not try to
...
...
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