mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
BUG#23576, Table is created although tablespace does not exist
This commit is contained in:
parent
c10719c605
commit
23ae8206f5
1 changed files with 8 additions and 0 deletions
|
@ -4706,10 +4706,18 @@ int ha_ndbcluster::create(const char *name,
|
|||
}
|
||||
|
||||
if (info->store_on_disk)
|
||||
{
|
||||
if (info->tablespace)
|
||||
tab.setTablespace(info->tablespace);
|
||||
else
|
||||
tab.setTablespace("DEFAULT-TS");
|
||||
}
|
||||
else if (info->tablespace)
|
||||
{
|
||||
tab.setTablespace(info->tablespace);
|
||||
info->store_on_disk = true; //if use tablespace, that also means store on disk
|
||||
}
|
||||
|
||||
// No primary key, create shadow key as 64 bit, auto increment
|
||||
if (form->s->primary_key == MAX_KEY)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue