Commit e9fe4607 authored by unknown's avatar unknown

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


storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  since undo_buffer_size cannot be less than 96KB in LGMAN block, add a check to verify this limitation
parent 33452e00
......@@ -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;
......
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