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
e6e892f2
Commit
e6e892f2
authored
Jul 13, 2009
by
inaam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip
Fixed warnings on windows where ulint != ib_uint64_t
parent
cda25368
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
buf/buf0flu.c
buf/buf0flu.c
+4
-3
include/log0log.h
include/log0log.h
+1
-1
include/log0log.ic
include/log0log.ic
+1
-1
No files found.
buf/buf0flu.c
View file @
e6e892f2
...
...
@@ -1303,7 +1303,7 @@ buf_flush_get_desired_flush_rate(void)
ulint
n_flush_req
;
lint
rate
;
ib_uint64_t
lsn
=
log_get_lsn
();
ib_uint64_t
log_capacity
=
log_get_capacity
();
ulint
log_capacity
=
log_get_capacity
();
/* log_capacity should never be zero after the initialization
of log subsystem. */
...
...
@@ -1321,8 +1321,9 @@ buf_flush_get_desired_flush_rate(void)
/* redo_avg below is average at which redo is generated in
past BUF_FLUSH_STAT_N_INTERVAL + redo generated in the current
interval. */
redo_avg
=
buf_flush_stat_sum
.
redo
/
BUF_FLUSH_STAT_N_INTERVAL
+
(
lsn
-
buf_flush_stat_cur
.
redo
);
redo_avg
=
(
ulint
)
(
buf_flush_stat_sum
.
redo
/
BUF_FLUSH_STAT_N_INTERVAL
+
(
lsn
-
buf_flush_stat_cur
.
redo
));
/* An overflow can happen possibly if we flush more than 2^32
pages in BUF_FLUSH_STAT_N_INTERVAL. This is a very very
...
...
include/log0log.h
View file @
e6e892f2
...
...
@@ -174,7 +174,7 @@ Gets the log group capacity. It is OK to read the value without
holding log_sys->mutex because it is constant.
@return log group capacity */
UNIV_INLINE
ib_uint64_
t
ulin
t
log_get_capacity
(
void
);
/*==================*/
/******************************************************//**
...
...
include/log0log.ic
View file @
e6e892f2
...
...
@@ -390,7 +390,7 @@ Gets the log group capacity. It is OK to read the value without
holding log_sys->mutex because it is constant.
@return log group capacity */
UNIV_INLINE
ib_uint64_
t
ulin
t
log_get_capacity(void)
/*==================*/
{
...
...
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