File tree 2 files changed +4
-5
lines changed
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 {
263
263
constexpr ulint OS_AIO_N_PENDING_IOS_PER_THREAD= 256 ;
264
264
265
265
extern Atomic_counter<ulint> os_n_file_reads;
266
- extern ulint os_n_file_writes;
266
+ extern Atomic_counter< size_t > os_n_file_writes;
267
267
extern Atomic_counter<size_t > os_n_fsyncs;
268
268
269
269
/* 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;
157
157
158
158
Atomic_counter<ulint> os_n_file_reads;
159
159
static ulint os_bytes_read_since_printout;
160
- ulint os_n_file_writes;
160
+ Atomic_counter< size_t > os_n_file_writes;
161
161
Atomic_counter<size_t > os_n_fsyncs;
162
162
static ulint os_n_file_reads_old;
163
163
static ulint os_n_file_writes_old;
@@ -3924,12 +3924,11 @@ os_aio_print(FILE* file)
3924
3924
fprintf (file,
3925
3925
" Pending flushes (fsync) log: " ULINTPF
3926
3926
" ; 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 " ,
3929
3928
log_sys.get_pending_flushes (),
3930
3929
ulint{fil_n_pending_tablespace_flushes},
3931
3930
ulint{os_n_file_reads},
3932
- os_n_file_writes,
3931
+ static_cast < size_t >( os_n_file_writes) ,
3933
3932
static_cast <size_t >(os_n_fsyncs));
3934
3933
3935
3934
const ulint n_reads = ulint (MONITOR_VALUE (MONITOR_OS_PENDING_READS));
You can’t perform that action at this time.
0 commit comments