File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4760,7 +4760,7 @@ ibuf_merge_or_delete_for_page(
4760
4760
btr_pcur_close (&pcur);
4761
4761
mem_heap_free (heap);
4762
4762
4763
- my_atomic_addlint (& ibuf->n_merges , 1 ) ;
4763
+ ibuf->n_merges ++ ;
4764
4764
ibuf_add_ops (ibuf->n_merged_ops , mops);
4765
4765
ibuf_add_ops (ibuf->n_discarded_ops , dops);
4766
4766
@@ -4897,7 +4897,7 @@ ibuf_print(
4897
4897
ibuf->size ,
4898
4898
ibuf->free_list_len ,
4899
4899
ibuf->seg_size ,
4900
- ibuf->n_merges );
4900
+ ulint{ ibuf->n_merges } );
4901
4901
4902
4902
fputs (" merged operations:\n " , file);
4903
4903
ibuf_print_ops (ibuf->n_merged_ops , file);
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ struct ibuf_t{
78
78
ulint height; /*!< tree height */
79
79
dict_index_t* index; /*!< insert buffer index */
80
80
81
- ulint n_merges; /*!< number of pages merged */
81
+ /** number of pages merged */
82
+ Atomic_counter<ulint> n_merges;
82
83
ulint n_merged_ops[IBUF_OP_COUNT];
83
84
/*!< number of operations of each type
84
85
merged to index pages */
You can’t perform that action at this time.
0 commit comments