mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
branches/zip
Fixed warnings on windows where ulint != ib_uint64_t
This commit is contained in:
parent
ec40f5cd73
commit
9af090cb0e
3 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
ulint
|
||||
log_get_capacity(void);
|
||||
/*==================*/
|
||||
/******************************************************//**
|
||||
|
|
|
@ -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
|
||||
ulint
|
||||
log_get_capacity(void)
|
||||
/*==================*/
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue