Skip to content

Commit e70d82b

Browse files
committed
Fixed whitespace
1 parent 2728bb8 commit e70d82b

14 files changed

+39
-39
lines changed

storage/perfschema/pfs_digest.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ extern PFS_statements_digest_stat *statements_digest_stat_array;
8181
extern LF_HASH digest_hash;
8282

8383
#endif
84-
84+

storage/perfschema/pfs_events_statements.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int init_events_statements_history_long(uint events_statements_history_long_sizi
106106

107107
events_statements_history_long_array[index].m_sqltext= h_long_stmts_text_array + index * pfs_max_sqltext;
108108
}
109-
109+
110110
return 0;
111111
}
112112

storage/perfschema/pfs_instr.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ void aggregate_thread_status(PFS_thread *thread,
15581558
safe_host->aggregate_status_stats(&thd->status_var);
15591559
}
15601560
#if 0
1561-
else
1561+
else
15621562
{
15631563
/* TODO: Requires LOCK_status. global_status_var updated by server on THD disconnect. */
15641564
add_to_status(&global_status_var, &thd->status_var, false);

storage/perfschema/pfs_instr_class.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ void PFS_table_share::refresh_setup_object_flags(PFS_thread *thread)
669669
m_table_name, m_table_name_length,
670670
&m_enabled, &m_timed);
671671

672-
/*
672+
/*
673673
If instrumentation for this table was enabled earlier and is disabled now,
674674
cleanup slots reserved for lock stats and index stats.
675675
*/

storage/perfschema/pfs_server.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void shutdown_performance_schema(void)
309309
my_set_thread_local(THR_PFS_SBU, NULL); // status_by_user
310310
my_set_thread_local(THR_PFS_SBH, NULL); // status_by_host
311311
my_set_thread_local(THR_PFS_SBA, NULL); // status_by_account
312-
312+
313313
my_delete_thread_local_key(THR_PFS);
314314
my_delete_thread_local_key(THR_PFS_VG);
315315
my_delete_thread_local_key(THR_PFS_SV);

storage/perfschema/pfs_variable.cc

+20-20
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ bool PFS_system_variable_cache::init_show_var_array(enum_var_type scope)
3737
{
3838
DBUG_ASSERT(!m_initialized);
3939
m_query_scope= scope;
40-
40+
4141
mysql_rwlock_rdlock(&LOCK_system_variables_hash);
4242
DEBUG_SYNC(m_current_thd, "acquired_LOCK_system_variables_hash");
4343

4444
/* Record the system variable hash version to detect subsequent changes. */
4545
m_version= get_system_variable_hash_version();
46-
46+
4747
/* Build the SHOW_VAR array from the system variable hash. */
4848
enumerate_sys_vars(m_current_thd, &m_show_var_array, true, m_query_scope, true);
4949

@@ -67,7 +67,7 @@ bool PFS_system_variable_cache::do_initialize_session(void)
6767

6868
/* Build the array. */
6969
bool ret= init_show_var_array(OPT_SESSION);
70-
70+
7171
mysql_mutex_unlock(&LOCK_plugin_delete);
7272
return ret;
7373
}
@@ -194,7 +194,7 @@ void PFS_system_variable_cache::free_mem_root(void)
194194
int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
195195
{
196196
int ret= 1;
197-
197+
198198
m_pfs_thread= pfs_thread;
199199
m_materialized= false;
200200
m_cache.clear();
@@ -208,7 +208,7 @@ int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
208208
/* Use a temporary mem_root to avoid depleting THD mem_root. */
209209
if (m_use_mem_root)
210210
set_mem_root();
211-
211+
212212
/* Get and lock a validated THD from the thread manager. */
213213
if ((m_safe_thd= get_THD(pfs_thread)) != NULL)
214214
{
@@ -232,7 +232,7 @@ int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
232232
m_materialized= true;
233233
ret= 0;
234234
}
235-
235+
236236
/* Mark mem_root blocks as free. */
237237
if (m_use_mem_root)
238238
clear_mem_root();
@@ -249,7 +249,7 @@ int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
249249
int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread, uint index)
250250
{
251251
int ret= 1;
252-
252+
253253
m_pfs_thread= pfs_thread;
254254
m_materialized= false;
255255
m_cache.clear();
@@ -264,7 +264,7 @@ int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread, ui
264264
if ((m_safe_thd= get_THD(pfs_thread)) != NULL)
265265
{
266266
SHOW_VAR *show_var= &m_show_var_array.at(index);
267-
267+
268268
if (show_var && show_var->value &&
269269
(show_var != m_show_var_array.end()))
270270
{
@@ -285,7 +285,7 @@ int PFS_system_variable_cache::do_materialize_session(PFS_thread *pfs_thread, ui
285285
m_materialized= true;
286286
ret= 0;
287287
}
288-
288+
289289
mysql_mutex_unlock(&LOCK_plugin_delete);
290290
return ret;
291291
}
@@ -662,7 +662,7 @@ bool PFS_status_variable_cache::init_show_var_array(enum_var_type scope)
662662

663663
/* Get the latest version of all_status_vars. */
664664
m_version= get_status_vars_version();
665-
665+
666666
/* Increase cache size if necessary. */
667667
m_cache.reserve(m_show_var_array.size());
668668

@@ -708,7 +708,7 @@ char * PFS_status_variable_cache::make_show_var_name(const char* prefix, const c
708708
{
709709
DBUG_ASSERT(name_buf != NULL);
710710
char *prefix_end= name_buf;
711-
711+
712712
if (prefix && *prefix)
713713
{
714714
/* Drop the prefix into the front of the name buffer. */
@@ -748,7 +748,7 @@ bool PFS_status_variable_cache::do_initialize_session(void)
748748

749749
bool ret= init_show_var_array(OPT_SESSION);
750750

751-
if (m_current_thd->fill_status_recursion_level-- == 1)
751+
if (m_current_thd->fill_status_recursion_level-- == 1)
752752
mysql_mutex_unlock(&LOCK_status);
753753

754754
return ret;
@@ -766,7 +766,7 @@ int PFS_status_variable_cache::do_materialize_global(void)
766766
/* Acquire LOCK_status to guard against plugin load/unload. */
767767
if (m_current_thd->fill_status_recursion_level++ == 0)
768768
mysql_mutex_lock(&LOCK_status);
769-
769+
770770
/*
771771
Build array of SHOW_VARs from global status array. Do this within
772772
LOCK_status to ensure that the array remains unchanged during
@@ -792,7 +792,7 @@ int PFS_status_variable_cache::do_materialize_global(void)
792792
*/
793793
manifest(m_current_thd, m_show_var_array.begin(), &status_totals, "", false);
794794

795-
if (m_current_thd->fill_status_recursion_level-- == 1)
795+
if (m_current_thd->fill_status_recursion_level-- == 1)
796796
mysql_mutex_unlock(&LOCK_status);
797797

798798
m_materialized= true;
@@ -840,7 +840,7 @@ int PFS_status_variable_cache::do_materialize_session(THD* unsafe_thd)
840840
ret= 0;
841841
}
842842

843-
if (m_current_thd->fill_status_recursion_level-- == 1)
843+
if (m_current_thd->fill_status_recursion_level-- == 1)
844844
mysql_mutex_unlock(&LOCK_status);
845845
return ret;
846846
}
@@ -861,7 +861,7 @@ int PFS_status_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
861861
/* Acquire LOCK_status to guard against plugin load/unload. */
862862
if (m_current_thd->fill_status_recursion_level++ == 0)
863863
mysql_mutex_lock(&LOCK_status);
864-
864+
865865
/* The SHOW_VAR array must be initialized externally. */
866866
DBUG_ASSERT(m_initialized);
867867

@@ -880,8 +880,8 @@ int PFS_status_variable_cache::do_materialize_session(PFS_thread *pfs_thread)
880880
m_materialized= true;
881881
ret= 0;
882882
}
883-
884-
if (m_current_thd->fill_status_recursion_level-- == 1)
883+
884+
if (m_current_thd->fill_status_recursion_level-- == 1)
885885
mysql_mutex_unlock(&LOCK_status);
886886
return ret;
887887
}
@@ -913,14 +913,14 @@ int PFS_status_variable_cache::do_materialize_client(PFS_client *pfs_client)
913913
from disconnected threads.
914914
*/
915915
m_sum_client_status(pfs_client, &status_totals);
916-
916+
917917
/*
918918
Build the status variable cache using the SHOW_VAR array as a reference and
919919
the status totals collected from threads associated with this client.
920920
*/
921921
manifest(m_current_thd, m_show_var_array.begin(), &status_totals, "", false);
922922

923-
if (m_current_thd->fill_status_recursion_level-- == 1)
923+
if (m_current_thd->fill_status_recursion_level-- == 1)
924924
mysql_mutex_unlock(&LOCK_status);
925925

926926
m_materialized= true;

storage/perfschema/pfs_variable.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
1. INITIALIZE - Build or acquire a sorted list of variables to use for input.
3131
Use the SHOW_VAR struct as an intermediate format common to system, status
3232
and user vars:
33-
33+
3434
SHOW_VAR
3535
Name - Text string
3636
Value - Pointer to memory location, function, subarray structure
@@ -45,7 +45,7 @@
4545
- For status variables, copy existing global status array into a local
4646
array that can be used without locks. Expand nested subarrays, indicated
4747
by a type of SHOW_ARRAY.
48-
48+
4949
2. MATERIALIZE - Convert the list of SHOW_VAR variables to string format,
5050
store in a local cache:
5151
- Resolve each variable according to the type.
@@ -55,7 +55,7 @@
5555
- Prefix variable name with the plugin name.
5656
5757
3. OUTPUT - Iterate the cache for the SHOW command or table query.
58-
58+
5959
CLASS OVERVIEW
6060
--------------
6161
1. System_variable - A materialized system variable
@@ -200,7 +200,7 @@ class Find_THD_variable : public Find_THD_Impl
200200
//TODO: filter bg threads?
201201
if (thd != m_unsafe_thd)
202202
return false;
203-
203+
204204
/* Hold this lock to keep THD during materialization. */
205205
mysql_mutex_lock(&thd->LOCK_thd_data);
206206
return true;
@@ -238,13 +238,13 @@ class PFS_variable_cache
238238
{ }
239239

240240
virtual ~PFS_variable_cache()= 0;
241-
241+
242242
/**
243243
Build array of SHOW_VARs from the external variable source.
244244
Filter using session scope.
245245
*/
246246
bool initialize_session(void);
247-
247+
248248
/**
249249
Build array of SHOW_VARs suitable for aggregation by user, host or account.
250250
Filter using session scope.
@@ -379,7 +379,7 @@ class PFS_variable_cache
379379
virtual int do_materialize_session(PFS_thread *) { return 1; }
380380
virtual int do_materialize_session(PFS_thread *, uint index) { return 1; }
381381

382-
protected:
382+
protected:
383383
/* Validated THD */
384384
THD *m_safe_thd;
385385

storage/perfschema/table_helper.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ void PFS_variable_name_row::make_row(const char* str, size_t length)
780780
{
781781
DBUG_ASSERT(length <= sizeof(m_str));
782782
DBUG_ASSERT(length <= NAME_CHAR_LEN);
783-
783+
784784
m_length= MY_MIN(length, NAME_CHAR_LEN); /* enforce max name length */
785785
if (m_length > 0)
786786
memcpy(m_str, str, length);

storage/perfschema/table_session_status.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int table_session_status::rnd_init(bool scan)
9292
return 0;
9393

9494
/* Build a cache of all status variables for this thread. */
95-
m_status_cache.materialize_session(current_thd);
95+
m_status_cache.materialize_session(current_thd);
9696

9797
/* Record the current number of status variables to detect subsequent changes. */
9898
ulonglong status_version= m_status_cache.get_status_array_version();

storage/perfschema/table_setup_actors.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int table_setup_actors::write_row(TABLE *table, unsigned char *buf,
115115
}
116116
}
117117
}
118-
118+
119119
/* Reject illegal enum values in ENABLED */
120120
if ((enabled_value != ENUM_YES) && (enabled_value != ENUM_NO))
121121
return HA_ERR_NO_REFERENCED_ROW;

storage/perfschema/table_status_by_account.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class table_status_by_account : public PFS_engine_table
131131

132132
/** Status variable cache for one account. */
133133
PFS_status_variable_cache m_status_cache;
134-
134+
135135
/** Current row. */
136136
row_status_by_account m_row;
137137
/** True if the current row exists. */

storage/perfschema/table_status_by_user.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int table_status_by_user::rnd_next(void)
142142
threads associated with the user.
143143
*/
144144
bool has_more_user= true;
145-
145+
146146
for (m_pos.set_at(&m_next_pos);
147147
has_more_user;
148148
m_pos.next_user())

storage/perfschema/table_status_by_user.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class table_status_by_user_context : public PFS_table_context
9393
class table_status_by_user : public PFS_engine_table
9494
{
9595
typedef pos_status_by_user pos_t;
96-
96+
9797
public:
9898
/** Table share */
9999
static PFS_engine_table_share m_share;

storage/perfschema/table_variables_by_thread.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ table_variables_by_thread::rnd_pos(const void *pos)
165165

166166
set_position(pos);
167167
DBUG_ASSERT(m_pos.m_index_1 < global_thread_container.get_row_count());
168-
168+
169169
PFS_thread *pfs_thread= global_thread_container.get(m_pos.m_index_1);
170170
/*
171171
Only materialize threads that were previously materialized by rnd_next().

0 commit comments

Comments
 (0)