Commit 8dc9ca83 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -159,7 +159,8 @@ struct CreateFileRef {
    InvalidFilegroupVersion = 754,
    FilenameAlreadyExists = 760,
    OutOfFileRecords = 751,
    InvalidFileType = 750
    InvalidFileType = 750,
    NotSupportedWhenDiskless = 775
  };
  
  Uint32 senderData;
+11 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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