Skip to content

Commit

Permalink
Follow-up to MDEV-12534: Fix warnings on 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Apr 21, 2017
1 parent 87b6df3 commit e48ae21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/os/os0file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5647,8 +5647,8 @@ os_aio_print(
os_n_file_writes,
os_n_fsyncs);

const ulint n_reads = MONITOR_VALUE(MONITOR_OS_PENDING_READS);
const ulint n_writes = MONITOR_VALUE(MONITOR_OS_PENDING_WRITES);
const ulint n_reads = ulint(MONITOR_VALUE(MONITOR_OS_PENDING_READS));
const ulint n_writes = ulint(MONITOR_VALUE(MONITOR_OS_PENDING_WRITES));

if (n_reads != 0 || n_writes != 0) {
fprintf(file,
Expand Down
4 changes: 2 additions & 2 deletions storage/innobase/srv/srv0srv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1409,10 +1409,10 @@ srv_export_innodb_status(void)
mutex_enter(&srv_innodb_monitor_mutex);

export_vars.innodb_data_pending_reads =
MONITOR_VALUE(MONITOR_OS_PENDING_READS);
ulint(MONITOR_VALUE(MONITOR_OS_PENDING_READS));

export_vars.innodb_data_pending_writes =
MONITOR_VALUE(MONITOR_OS_PENDING_WRITES);
ulint(MONITOR_VALUE(MONITOR_OS_PENDING_WRITES));

export_vars.innodb_data_pending_fsyncs =
fil_n_pending_log_flushes
Expand Down
4 changes: 2 additions & 2 deletions storage/xtradb/os/os0file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5820,8 +5820,8 @@ os_aio_print(
os_n_file_writes,
os_n_fsyncs);

const ulint n_reads = MONITOR_VALUE(MONITOR_OS_PENDING_READS);
const ulint n_writes = MONITOR_VALUE(MONITOR_OS_PENDING_WRITES);
const ulint n_reads = ulint(MONITOR_VALUE(MONITOR_OS_PENDING_READS));
const ulint n_writes = ulint(MONITOR_VALUE(MONITOR_OS_PENDING_WRITES));

if (n_reads != 0 || n_writes != 0) {
fprintf(file,
Expand Down
4 changes: 2 additions & 2 deletions storage/xtradb/srv/srv0srv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1735,10 +1735,10 @@ srv_export_innodb_status(void)
mutex_enter(&srv_innodb_monitor_mutex);

export_vars.innodb_data_pending_reads =
MONITOR_VALUE(MONITOR_OS_PENDING_READS);
ulint(MONITOR_VALUE(MONITOR_OS_PENDING_READS));

export_vars.innodb_data_pending_writes =
MONITOR_VALUE(MONITOR_OS_PENDING_WRITES);
ulint(MONITOR_VALUE(MONITOR_OS_PENDING_WRITES));

export_vars.innodb_data_pending_fsyncs =
fil_n_pending_log_flushes
Expand Down

0 comments on commit e48ae21

Please sign in to comment.