Commit c782aadd authored by unknown's avatar unknown
Browse files

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

- add error message

parent 79430bac
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -410,7 +410,22 @@ Suma::createSequenceReply(Signal* signal,
  jam();

  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);
  }

  sendSTTORRY(signal);
}
+4 −0
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ static const ErrStruct errArray[] =
   /* this error message is complemented by additional info when generated */
   {NDBD_EXIT_INVALID_CONFIG, XCE,
    "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
      generated, such as signal, and text
   */