Skip to content

Commit 0a132ae

Browse files
committed
MariaRocks: disable more of my_io_perf_t usage
1 parent fdf026a commit 0a132ae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,9 @@ Rdb_table_handler* Rdb_open_tables_map::get_table_handler(
37743774
}
37753775

37763776
thr_lock_init(&table_handler->m_thr_lock);
3777+
#ifdef MARIAROCKS_NOT_YET
37773778
my_io_perf_atomic_init(&table_handler->m_io_perf_read);
3779+
#endif
37783780
}
37793781
DBUG_ASSERT(table_handler->m_ref_count >= 0);
37803782
table_handler->m_ref_count++;

storage/rocksdb/rdb_perf_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ void Rdb_io_perf::end_and_record(uint32_t perf_context_level)
209209
rocksdb::perf_context.block_read_count != 0 ||
210210
rocksdb::perf_context.block_read_time != 0))
211211
{
212+
#ifdef MARIAROCKS_NOT_YET
212213
my_io_perf_t io_perf_read;
213214

214215
my_io_perf_init(&io_perf_read);
@@ -223,7 +224,6 @@ void Rdb_io_perf::end_and_record(uint32_t perf_context_level)
223224
rocksdb::perf_context.block_read_time;
224225

225226
my_io_perf_sum_atomic_helper(m_shared_io_perf_read, &io_perf_read);
226-
#ifdef MARIAROCKS_NOT_YET
227227
my_io_perf_sum(&m_stats->table_io_perf_read, &io_perf_read);
228228
#endif
229229
}

0 commit comments

Comments
 (0)