Skip to content

Commit dde6d76

Browse files
committed
Trivial code cleanup
1 parent a93b377 commit dde6d76

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sql/sql_statistics.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,6 +2915,7 @@ bool Column_statistics_collected::add()
29152915
return err;
29162916
}
29172917

2918+
29182919
/**
29192920
@brief
29202921
Get the results of aggregation when collecting the statistics on a column
@@ -3617,9 +3618,6 @@ int read_histograms_for_table(THD *thd, TABLE *table, TABLE_LIST *stat_tables)
36173618
TABLE_STATISTICS_CB *stats_cb= &table->s->stats_cb;
36183619
DBUG_ENTER("read_histograms_for_table");
36193620

3620-
// histograms-todo: why do we use synchronization here, when we load
3621-
// histogram for the TABLE object, not TABLE_SHARE?
3622-
// is it because of the use of stats_cb->mem_root?
36233621
if (stats_cb->start_histograms_load())
36243622
{
36253623
//uchar *histogram= (uchar *) alloc_root(&stats_cb->mem_root,

strings/json_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,7 @@ enum json_types json_get_object_nkey(const char *js __attribute__((unused)),
20282028
return JSV_NOTHING;
20292029
}
20302030

2031+
20312032
/** Check if json is valid (well-formed)
20322033
20332034
@retval 0 - success, json is well-formed

0 commit comments

Comments
 (0)