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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0c2bcf91
Commit
0c2bcf91
authored
Jul 06, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#20860
Better error message when failing to read either of 2 DIH schema files
parent
f5ec695c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+14
-5
No files found.
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
0c2bcf91
...
@@ -8209,11 +8209,20 @@ void Dbdih::openingTableErrorLab(Signal* signal, FileRecordPtr filePtr)
...
@@ -8209,11 +8209,20 @@ void Dbdih::openingTableErrorLab(Signal* signal, FileRecordPtr filePtr)
/* WE FAILED IN OPENING A FILE. IF THE FIRST FILE THEN TRY WITH THE */
/* WE FAILED IN OPENING A FILE. IF THE FIRST FILE THEN TRY WITH THE */
/* DUPLICATE FILE, OTHERWISE WE REPORT AN ERROR IN THE SYSTEM RESTART. */
/* DUPLICATE FILE, OTHERWISE WE REPORT AN ERROR IN THE SYSTEM RESTART. */
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
ndbrequire
(
filePtr
.
i
==
tabPtr
.
p
->
tabFile
[
0
]);
if
(
filePtr
.
i
==
tabPtr
.
p
->
tabFile
[
0
])
filePtr
.
i
=
tabPtr
.
p
->
tabFile
[
1
];
{
ptrCheckGuard
(
filePtr
,
cfileFileSize
,
fileRecord
);
filePtr
.
i
=
tabPtr
.
p
->
tabFile
[
1
];
openFileRw
(
signal
,
filePtr
);
ptrCheckGuard
(
filePtr
,
cfileFileSize
,
fileRecord
);
filePtr
.
p
->
reqStatus
=
FileRecord
::
OPENING_TABLE
;
openFileRw
(
signal
,
filePtr
);
filePtr
.
p
->
reqStatus
=
FileRecord
::
OPENING_TABLE
;
}
else
{
char
buf
[
256
];
BaseString
::
snprintf
(
buf
,
"Error opening DIH schema files for table: %d"
,
tabPtr
.
i
);
progError
(
__LINE__
,
NDBD_EXIT_AFS_NO_SUCH_FILE
,
buf
);
}
}
//Dbdih::openingTableErrorLab()
}
//Dbdih::openingTableErrorLab()
void
Dbdih
::
readingTableLab
(
Signal
*
signal
,
FileRecordPtr
filePtr
)
void
Dbdih
::
readingTableLab
(
Signal
*
signal
,
FileRecordPtr
filePtr
)
...
...
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