@@ -235,7 +235,7 @@ class Current_schema_tracker : public State_tracker
235235
236236 bool enable (THD *thd)
237237 { return update (thd); }
238- bool check (THD *thd , set_var *var )
238+ bool check (THD* , set_var* )
239239 { return false ; }
240240 bool update (THD *thd);
241241 bool store (THD *thd, String &buf);
@@ -387,7 +387,7 @@ class Session_gtids_tracker : public State_tracker, Session_consistency_gtids_ct
387387
388388 bool enable (THD *thd)
389389 { return update (thd); }
390- bool check (THD *thd , set_var *var )
390+ bool check (THD* , set_var* )
391391 { return false ; }
392392 bool update (THD *thd);
393393 bool store (THD *thd, String &buf);
@@ -1243,9 +1243,7 @@ bool Transaction_state_tracker::store(THD *thd, String &buf)
12431243 Mark the tracker as changed.
12441244*/
12451245
1246- void Transaction_state_tracker::mark_as_changed (THD *thd,
1247- LEX_CSTRING *tracked_item_name
1248- MY_ATTRIBUTE ((unused)))
1246+ void Transaction_state_tracker::mark_as_changed (THD*, LEX_CSTRING*)
12491247{
12501248 m_changed = true ;
12511249}
@@ -1269,14 +1267,12 @@ void Transaction_state_tracker::reset()
12691267 non-transactional), and returns the corresponding access flag
12701268 out of TX_READ_TRX, TX_READ_UNSAFE, TX_WRITE_TRX, TX_WRITE_UNSAFE.
12711269
1272- @param thd The thd handle
12731270 @param l The table's access/lock type
12741271 @param has_trx Whether the table's engine is transactional
12751272
12761273 @return The table access flag
12771274*/
1278- enum_tx_state Transaction_state_tracker::calc_trx_state (THD *thd,
1279- thr_lock_type l,
1275+ enum_tx_state Transaction_state_tracker::calc_trx_state (thr_lock_type l,
12801276 bool has_trx)
12811277{
12821278 enum_tx_state s;
@@ -1463,15 +1459,14 @@ bool Session_state_change_tracker::update(THD *thd)
14631459 1byte flag value is 1 then there is a session state change else
14641460 there is no state change information.
14651461
1466- @param thd The thd handle.
14671462 @param [in,out] buf Buffer to store the information to.
14681463
14691464 @return
14701465 false Success
14711466 true Error
14721467**/
14731468
1474- bool Session_state_change_tracker::store (THD *thd , String &buf)
1469+ bool Session_state_change_tracker::store (THD* , String &buf)
14751470{
14761471 /* since its a boolean tracker length is always 1 */
14771472 const ulonglong length= 1 ;
@@ -1488,7 +1483,7 @@ bool Session_state_change_tracker::store(THD *thd, String &buf)
14881483 to= net_store_length (to, length);
14891484
14901485 /* boolean tracker will go here */
1491- *to= (is_state_changed (thd ) ? ' 1' : ' 0' );
1486+ *to= (is_state_changed () ? ' 1' : ' 0' );
14921487
14931488 reset ();
14941489
@@ -1532,7 +1527,7 @@ void Session_state_change_tracker::reset()
15321527 @retval false There is no session state change
15331528**/
15341529
1535- bool Session_state_change_tracker::is_state_changed (THD* thd )
1530+ bool Session_state_change_tracker::is_state_changed ()
15361531{
15371532 return m_changed;
15381533}
0 commit comments