Bug#24560 Data nodes died(lgman) if undo_buffer_size from logfile group has small value

This commit is contained in:
tomas@whalegate.ndb.mysql.com 2007-04-27 12:26:13 +02:00
parent cfd4183e5e
commit f53e1929a2

View file

@ -18,6 +18,7 @@
#define DBDICT_C
#include "Dbdict.hpp"
#include "diskpage.hpp"
#include <ndb_limits.h>
#include <NdbOut.hpp>
@ -15498,7 +15499,10 @@ Dbdict::create_fg_prepare_start(Signal* signal, SchemaOp* op){
}
else if(fg.FilegroupType == DictTabInfo::LogfileGroup)
{
if(!fg.LF_UndoBufferSize)
/**
* undo_buffer_size can't be less than 96KB in LGMAN block
*/
if(fg.LF_UndoBufferSize < 3 * File_formats::NDB_PAGE_SIZE)
{
op->m_errorCode = CreateFilegroupRef::InvalidUndoBufferSize;
break;