Commit 8dc9ca83 authored by unknown's avatar unknown

ndb - bug#20008

  no DD when diskless


storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp:
  New error code for create file when diskless
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  New error code for create file when diskless
storage/ndb/src/ndbapi/ndberror.c:
  New error code for create file when diskless
parent c56f8803
...@@ -159,7 +159,8 @@ struct CreateFileRef { ...@@ -159,7 +159,8 @@ struct CreateFileRef {
InvalidFilegroupVersion = 754, InvalidFilegroupVersion = 754,
FilenameAlreadyExists = 760, FilenameAlreadyExists = 760,
OutOfFileRecords = 751, OutOfFileRecords = 751,
InvalidFileType = 750 InvalidFileType = 750,
NotSupportedWhenDiskless = 775
}; };
Uint32 senderData; Uint32 senderData;
......
...@@ -15153,6 +15153,17 @@ Dbdict::create_file_prepare_start(Signal* signal, SchemaOp* op){ ...@@ -15153,6 +15153,17 @@ Dbdict::create_file_prepare_start(Signal* signal, SchemaOp* op){
break; 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... // Loop through all filenames...
if(!c_obj_pool.seize(obj_ptr)){ if(!c_obj_pool.seize(obj_ptr)){
op->m_errorCode = CreateTableRef::NoMoreTableRecords; op->m_errorCode = CreateTableRef::NoMoreTableRecords;
......
...@@ -417,6 +417,7 @@ ErrorBundle ErrorCodes[] = { ...@@ -417,6 +417,7 @@ ErrorBundle ErrorCodes[] = {
{ 1514, DMEC, SE, "Currently there is a limit of one logfile group" }, { 1514, DMEC, SE, "Currently there is a limit of one logfile group" },
{ 773, DMEC, SE, "Out of string memory, please modify StringMemory config parameter" }, { 773, DMEC, SE, "Out of string memory, please modify StringMemory config parameter" },
{ 775, DMEC, SE, "Create file is not supported when Diskless=1" },
/** /**
* FunctionNotImplemented * FunctionNotImplemented
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment