Commit 9af090cb authored by inaam's avatar inaam

branches/zip

Fixed warnings on windows where ulint != ib_uint64_t
parent ec40f5cd
......@@ -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)
/*==================*/
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment