File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ struct os_file_size_t {
263263constexpr ulint OS_AIO_N_PENDING_IOS_PER_THREAD= 256 ;
264264
265265extern Atomic_counter<ulint> os_n_file_reads;
266- extern ulint os_n_file_writes;
266+ extern Atomic_counter< size_t > os_n_file_writes;
267267extern Atomic_counter<size_t > os_n_fsyncs;
268268
269269/* File types for directory entry data type */
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ static ulint os_innodb_umask = 0;
157157
158158Atomic_counter<ulint> os_n_file_reads;
159159static ulint os_bytes_read_since_printout;
160- ulint os_n_file_writes;
160+ Atomic_counter< size_t > os_n_file_writes;
161161Atomic_counter<size_t > os_n_fsyncs;
162162static ulint os_n_file_reads_old;
163163static ulint os_n_file_writes_old;
@@ -3924,12 +3924,11 @@ os_aio_print(FILE* file)
39243924 fprintf (file,
39253925 " Pending flushes (fsync) log: " ULINTPF
39263926 " ; buffer pool: " ULINTPF " \n "
3927- ULINTPF " OS file reads, "
3928- ULINTPF " OS file writes, %zu OS fsyncs\n " ,
3927+ ULINTPF " OS file reads, %zu OS file writes, %zu OS fsyncs\n " ,
39293928 log_sys.get_pending_flushes (),
39303929 ulint{fil_n_pending_tablespace_flushes},
39313930 ulint{os_n_file_reads},
3932- os_n_file_writes,
3931+ static_cast < size_t >( os_n_file_writes) ,
39333932 static_cast <size_t >(os_n_fsyncs));
39343933
39353934 const ulint n_reads = ulint (MONITOR_VALUE (MONITOR_OS_PENDING_READS));
You can’t perform that action at this time.
0 commit comments