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
da474c03
Commit
da474c03
authored
Mar 20, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: recv_sys_init(): Remove a compile-time constant parameter.
parent
94ca1bb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
14 deletions
+11
-14
ChangeLog
ChangeLog
+2
-1
include/log0recv.h
include/log0recv.h
+0
-2
log/log0log.c
log/log0log.c
+1
-1
log/log0recv.c
log/log0recv.c
+8
-10
No files found.
ChangeLog
View file @
da474c03
2009-03-20 The InnoDB Team
* buf/buf0buf.c, include/log0recv.h, log/log0recv.c:
Remove the compile-time constant parameters of recv_recover_page().
Remove the compile-time constant parameters of
recv_recover_page() and recv_sys_init().
2009-03-20 The InnoDB Team
...
...
include/log0recv.h
View file @
da474c03
...
...
@@ -208,8 +208,6 @@ UNIV_INTERN
void
recv_sys_init
(
/*==========*/
ibool
recover_from_backup
,
/* in: TRUE if this is called
to recover from a hot backup */
ulint
available_memory
);
/* in: available memory in bytes */
/***********************************************************************
Empties the hash table of stored log records, applying them to appropriate
...
...
log/log0log.c
View file @
da474c03
...
...
@@ -844,7 +844,7 @@ log_init(void)
#ifdef UNIV_LOG_DEBUG
recv_sys_create
();
recv_sys_init
(
FALSE
,
buf_pool_get_curr_size
());
recv_sys_init
(
buf_pool_get_curr_size
());
recv_sys
->
parse_start_lsn
=
log_sys
->
lsn
;
recv_sys
->
scanned_lsn
=
log_sys
->
lsn
;
...
...
log/log0recv.c
View file @
da474c03
...
...
@@ -154,8 +154,6 @@ UNIV_INTERN
void
recv_sys_init
(
/*==========*/
ibool
recover_from_backup
,
/* in: TRUE if this is called
to recover from a hot backup */
ulint
available_memory
)
/* in: available memory in bytes */
{
if
(
recv_sys
->
heap
!=
NULL
)
{
...
...
@@ -165,12 +163,12 @@ recv_sys_init(
mutex_enter
(
&
(
recv_sys
->
mutex
));
if
(
!
recover_from_backup
)
{
recv_sys
->
heap
=
mem_heap_create_in_buffer
(
256
);
}
else
{
recv_sys
->
heap
=
mem_heap_create
(
256
);
recv_is_from_backup
=
TRUE
;
}
#ifndef UNIV_HOTBACKUP
recv_sys
->
heap
=
mem_heap_create_in_buffer
(
256
);
#else
/* !UNIV_HOTBACKUP */
recv_sys
->
heap
=
mem_heap_create
(
256
);
recv_is_from_backup
=
TRUE
;
#endif
/* !UNIV_HOTBACKUP */
recv_sys
->
buf
=
ut_malloc
(
RECV_PARSING_BUF_SIZE
);
recv_sys
->
len
=
0
;
...
...
@@ -2597,7 +2595,7 @@ recv_recovery_from_checkpoint_start_func(
if
(
TYPE_CHECKPOINT
)
{
recv_sys_create
();
recv_sys_init
(
FALSE
,
buf_pool_get_curr_size
());
recv_sys_init
(
buf_pool_get_curr_size
());
}
if
(
srv_force_recovery
>=
SRV_FORCE_NO_LOG_REDO
)
{
...
...
@@ -3369,7 +3367,7 @@ recv_recovery_from_archive_start(
ut_a
(
0
);
recv_sys_create
();
recv_sys_init
(
FALSE
,
buf_pool_get_curr_size
());
recv_sys_init
(
buf_pool_get_curr_size
());
recv_recovery_on
=
TRUE
;
recv_recovery_from_backup_on
=
TRUE
;
...
...
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