mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Remove compile warning - "this" canot be null
/home/travis/build/MariaDB/server/sql/sql_class.cc:1941:15: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion] if (this && WSREP(this) && wsrep_thd_is_BF(this, FALSE)) ^~~~ ~~
This commit is contained in:
@@ -2011,7 +2011,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use,
|
|||||||
if (!thd_table->needs_reopen())
|
if (!thd_table->needs_reopen())
|
||||||
{
|
{
|
||||||
signalled|= mysql_lock_abort_for_thread(this, thd_table);
|
signalled|= mysql_lock_abort_for_thread(this, thd_table);
|
||||||
if (this && WSREP(this) && wsrep_thd_is_BF(this, FALSE))
|
if (WSREP(this) && wsrep_thd_is_BF(this, FALSE))
|
||||||
{
|
{
|
||||||
WSREP_DEBUG("remove_table_from_cache: %llu",
|
WSREP_DEBUG("remove_table_from_cache: %llu",
|
||||||
(unsigned long long) this->real_id);
|
(unsigned long long) this->real_id);
|
||||||
|
Reference in New Issue
Block a user