Don't crash in S3 if Aria is not initialzed

This commit is contained in:
Monty 2019-10-20 12:16:52 +03:00
parent 017150b747
commit 18a44b4b4b

View file

@ -678,7 +678,10 @@ static int ha_s3_init(void *p)
{
bool res;
static const char *no_exts[]= { 0 };
DBUG_ASSERT(maria_hton);
/* This can happen if Aria fails to start */
if (!maria_hton)
return HA_ERR_INITIALIZATION;
s3_hton= (handlerton *)p;