summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <tomas@whalegate.ndb.mysql.com>2007-04-27 12:26:13 +0200
committerunknown <tomas@whalegate.ndb.mysql.com>2007-04-27 12:26:13 +0200
commit439220a97834602412257a34f16f7674e6fc5775 (patch)
tree61db1b2a489c177e4f8deb657e2e6fe6a488fefb
parent0df04249177855ab7cb83242022bae56020261ee (diff)
downloadmariadb-git-439220a97834602412257a34f16f7674e6fc5775.tar.gz
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
-rw-r--r--storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp b/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
index 13ecd230f8c..66cd523f333 100644
--- a/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+++ b/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
@@ -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;