1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix to make DTrace probes on SPARC work well

This commit is contained in:
Mikael Ronstrom
2009-02-24 12:04:26 +01:00
parent 76df9311d1
commit f0c41e835b

View File

@ -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);
}