Browse Source

MDEV-37136 : sql/wsrep_allowlist_service.cc:40:27: runtime error: member call on null pointer of type 'Wsrep_schema'

Problem was that we used wsrep_schema pointer before it was
initialized. Fix is to allow all connections when wsrep_schema
is not yet initialized and check allowed connections
only when wsrep_schema has been initialized.
10.11-MDEV-37136
Jan Lindström 3 months ago
parent
commit
7947509525
  1. 8
      sql/wsrep_allowlist_service.cc

8
sql/wsrep_allowlist_service.cc

@ -36,8 +36,12 @@ bool Wsrep_allowlist_service::allowlist_cb (
const wsrep::const_buffer& value)
WSREP_NOEXCEPT
{
std::string string_value(value.data());
bool res= wsrep_schema->allowlist_check(key, string_value);
bool res=true; // allow all connections
if (wsrep_schema)
{
std::string string_value(value.data());
res= wsrep_schema->allowlist_check(key, string_value);
}
return res;
}

Loading…
Cancel
Save