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) ...@@ -1303,7 +1303,7 @@ buf_flush_get_desired_flush_rate(void)
ulint n_flush_req; ulint n_flush_req;
lint rate; lint rate;
ib_uint64_t lsn = log_get_lsn(); 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 /* log_capacity should never be zero after the initialization
of log subsystem. */ of log subsystem. */
...@@ -1321,8 +1321,9 @@ buf_flush_get_desired_flush_rate(void) ...@@ -1321,8 +1321,9 @@ buf_flush_get_desired_flush_rate(void)
/* redo_avg below is average at which redo is generated in /* redo_avg below is average at which redo is generated in
past BUF_FLUSH_STAT_N_INTERVAL + redo generated in the current past BUF_FLUSH_STAT_N_INTERVAL + redo generated in the current
interval. */ interval. */
redo_avg = buf_flush_stat_sum.redo / BUF_FLUSH_STAT_N_INTERVAL redo_avg = (ulint) (buf_flush_stat_sum.redo
+ (lsn - buf_flush_stat_cur.redo); / BUF_FLUSH_STAT_N_INTERVAL
+ (lsn - buf_flush_stat_cur.redo));
/* An overflow can happen possibly if we flush more than 2^32 /* An overflow can happen possibly if we flush more than 2^32
pages in BUF_FLUSH_STAT_N_INTERVAL. This is a very very 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 ...@@ -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. holding log_sys->mutex because it is constant.
@return log group capacity */ @return log group capacity */
UNIV_INLINE UNIV_INLINE
ib_uint64_t ulint
log_get_capacity(void); log_get_capacity(void);
/*==================*/ /*==================*/
/******************************************************//** /******************************************************//**
......
...@@ -390,7 +390,7 @@ Gets the log group capacity. It is OK to read the value without ...@@ -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. holding log_sys->mutex because it is constant.
@return log group capacity */ @return log group capacity */
UNIV_INLINE UNIV_INLINE
ib_uint64_t ulint
log_get_capacity(void) 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