Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
975908c1
Commit
975908c1
authored
Dec 14, 2006
by
gni/root@dev3-221.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #19146 If Backup parameters incorrectly set, the data nodes can't start.
parent
08aac434
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
storage/ndb/src/kernel/blocks/backup/Backup.cpp
storage/ndb/src/kernel/blocks/backup/Backup.cpp
+12
-0
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+20
-0
No files found.
storage/ndb/src/kernel/blocks/backup/Backup.cpp
View file @
975908c1
...
...
@@ -2387,6 +2387,18 @@ Backup::defineBackupRef(Signal* signal, BackupRecordPtr ptr, Uint32 errCode)
if
(
ptr
.
p
->
is_lcp
())
{
jam
();
if
(
ptr
.
p
->
ctlFilePtr
==
RNIL
)
{
ptr
.
p
->
m_gsn
=
GSN_DEFINE_BACKUP_REF
;
ndbrequire
(
ptr
.
p
->
errorCode
!=
0
);
DefineBackupRef
*
ref
=
(
DefineBackupRef
*
)
signal
->
getDataPtrSend
();
ref
->
backupId
=
ptr
.
p
->
backupId
;
ref
->
backupPtr
=
ptr
.
i
;
ref
->
errorCode
=
ptr
.
p
->
errorCode
;
ref
->
nodeId
=
getOwnNodeId
();
sendSignal
(
ptr
.
p
->
masterRef
,
GSN_DEFINE_BACKUP_REF
,
signal
,
DefineBackupRef
::
SignalLength
,
JBB
);
return
;
}
BackupFilePtr
filePtr
LINT_SET_PTR
;
ptr
.
p
->
files
.
getPtr
(
filePtr
,
ptr
.
p
->
ctlFilePtr
);
...
...
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
975908c1
...
...
@@ -566,6 +566,26 @@ Dblqh::execDEFINE_BACKUP_REF(Signal* signal)
{
jamEntry
();
m_backup_ptr
=
RNIL
;
DefineBackupRef
*
ref
=
(
DefineBackupRef
*
)
signal
->
getDataPtrSend
();
int
err_code
=
0
;
char
*
extra_msg
=
NULL
;
switch
(
ref
->
errorCode
){
case
DefineBackupRef
:
:
Undefined
:
case
DefineBackupRef
:
:
FailedToSetupFsBuffers
:
case
DefineBackupRef
:
:
FailedToAllocateBuffers
:
case
DefineBackupRef
:
:
FailedToAllocateTables
:
case
DefineBackupRef
:
:
FailedAllocateTableMem
:
case
DefineBackupRef
:
:
FailedToAllocateFileRecord
:
case
DefineBackupRef
:
:
FailedToAllocateAttributeRecord
:
case
DefineBackupRef
:
:
FailedInsertFileHeader
:
case
DefineBackupRef
:
:
FailedInsertTableList
:
jam
();
err_code
=
NDBD_EXIT_INVALID_CONFIG
;
extra_msg
=
"Probably Backup parameters configuration error, Please consult the manual"
;
progError
(
__LINE__
,
err_code
,
extra_msg
);
}
sendsttorryLab
(
signal
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment