From f0c41e835b73f4526430a57eb897890f17e5e905 Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Tue, 24 Feb 2009 12:04:26 +0100 Subject: [PATCH] Fix to make DTrace probes on SPARC work well --- sql/handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/handler.cc b/sql/handler.cc index 2145d7c84eb..d232559ea38 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -4558,6 +4558,9 @@ int handler::ha_external_lock(THD *thd, int lock_type) */ int error= external_lock(thd, lock_type); + if (error == 0) + cached_table_flags= table_flags(); + if (MYSQL_HANDLER_RDLOCK_DONE_ENABLED() || MYSQL_HANDLER_WRLOCK_DONE_ENABLED() || MYSQL_HANDLER_UNLOCK_DONE_ENABLED()) @@ -4575,9 +4578,6 @@ int handler::ha_external_lock(THD *thd, int lock_type) MYSQL_HANDLER_UNLOCK_DONE(error); } } - - if (error == 0) - cached_table_flags= table_flags(); DBUG_RETURN(error); }