mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
ndb - bug#20008
no DD when diskless
This commit is contained in:
parent
ef892289cf
commit
bbbb156efb
3 changed files with 14 additions and 1 deletions
|
@ -159,7 +159,8 @@ struct CreateFileRef {
|
|||
InvalidFilegroupVersion = 754,
|
||||
FilenameAlreadyExists = 760,
|
||||
OutOfFileRecords = 751,
|
||||
InvalidFileType = 750
|
||||
InvalidFileType = 750,
|
||||
NotSupportedWhenDiskless = 775
|
||||
};
|
||||
|
||||
Uint32 senderData;
|
||||
|
|
|
@ -15153,6 +15153,17 @@ Dbdict::create_file_prepare_start(Signal* signal, SchemaOp* op){
|
|||
break;
|
||||
}
|
||||
|
||||
{
|
||||
Uint32 dl;
|
||||
const ndb_mgm_configuration_iterator * p =
|
||||
m_ctx.m_config.getOwnConfigIterator();
|
||||
if(!ndb_mgm_get_int_parameter(p, CFG_DB_DISCLESS, &dl) && dl)
|
||||
{
|
||||
op->m_errorCode = CreateFileRef::NotSupportedWhenDiskless;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Loop through all filenames...
|
||||
if(!c_obj_pool.seize(obj_ptr)){
|
||||
op->m_errorCode = CreateTableRef::NoMoreTableRecords;
|
||||
|
|
|
@ -417,6 +417,7 @@ ErrorBundle ErrorCodes[] = {
|
|||
{ 1514, DMEC, SE, "Currently there is a limit of one logfile group" },
|
||||
|
||||
{ 773, DMEC, SE, "Out of string memory, please modify StringMemory config parameter" },
|
||||
{ 775, DMEC, SE, "Create file is not supported when Diskless=1" },
|
||||
|
||||
/**
|
||||
* FunctionNotImplemented
|
||||
|
|
Loading…
Reference in a new issue