Skip to content

Commit 99f4f11

Browse files
committed
Misc merge cleanup for the socket instrumentation.
1 parent eee7232 commit 99f4f11

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

storage/perfschema/pfs_instr_class.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,6 @@ PFS_socket_key register_socket_class(const char *name, uint name_length,
10241024
{
10251025
entry= &socket_class_array[index];
10261026
init_instr_class(entry, name, name_length, flags, PFS_CLASS_SOCKET);
1027-
entry->m_index= index;
10281027
entry->m_event_name_index= socket_class_start + index;
10291028
entry->m_singleton= NULL;
10301029
PFS_atomic::add_u32(&socket_class_allocated_count, 1);

storage/perfschema/pfs_instr_class.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,6 @@ struct PFS_socket_class : public PFS_instr_class
340340
{
341341
/** Socket usage statistics. */
342342
PFS_socket_stat m_socket_stat;
343-
/** Self index in @c socket_class_array. */
344-
uint m_index;
345343
/** Singleton instance. */
346344
PFS_socket *m_singleton;
347345
};

storage/perfschema/table_setup_instruments.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int table_setup_instruments::rnd_pos(const void *pos)
170170
instr_class= find_statement_class(m_pos.m_index_2);
171171
break;
172172
case pos_setup_instruments::VIEW_SOCKET:
173-
instr_class= find_table_class(m_pos.m_index_2);
173+
instr_class= find_socket_class(m_pos.m_index_2);
174174
break;
175175
case pos_setup_instruments::VIEW_IDLE:
176176
instr_class= find_idle_class(m_pos.m_index_2);

0 commit comments

Comments
 (0)