Commit 6e748553 authored by unknown's avatar unknown

Bug #19543 Out REDO log on subscription creation during startup, missing error message

- add error message
parent cc0ea3fc
...@@ -410,7 +410,22 @@ Suma::createSequenceReply(Signal* signal, ...@@ -410,7 +410,22 @@ Suma::createSequenceReply(Signal* signal,
jam(); jam();
if (ref != NULL) if (ref != NULL)
{
switch ((UtilSequenceRef::ErrorCode)ref->errorCode)
{
case UtilSequenceRef::NoSuchSequence:
ndbrequire(false);
case UtilSequenceRef::TCError:
{
char buf[128];
snprintf(buf, sizeof(buf),
"Startup failed during sequence creation. TC error %d",
ref->TCErrorCode);
progError(__LINE__, NDBD_EXIT_RESOURCE_ALLOC_ERROR, buf);
}
}
ndbrequire(false); ndbrequire(false);
}
sendSTTORRY(signal); sendSTTORRY(signal);
} }
......
...@@ -80,6 +80,10 @@ static const ErrStruct errArray[] = ...@@ -80,6 +80,10 @@ static const ErrStruct errArray[] =
/* this error message is complemented by additional info when generated */ /* this error message is complemented by additional info when generated */
{NDBD_EXIT_INVALID_CONFIG, XCE, {NDBD_EXIT_INVALID_CONFIG, XCE,
"Invalid configuration received from Management Server"}, "Invalid configuration received from Management Server"},
{NDBD_EXIT_RESOURCE_ALLOC_ERROR, XCE,
"Resource allocation error, please review the configuration"},
/* this error message is complemented by additional info when /* this error message is complemented by additional info when
generated, such as signal, and text generated, such as signal, and text
*/ */
......
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