mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
Don't crash in S3 if Aria is not initialzed
This commit is contained in:
parent
017150b747
commit
18a44b4b4b
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue