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
720f56fb
Commit
720f56fb
authored
May 30, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #28770 file already opened error when corrupt schema file
- make sure we close the first file, before opening the next
parent
643cc087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+7
-1
No files found.
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
720f56fb
...
@@ -401,6 +401,9 @@ void Dbdict::execFSCLOSECONF(Signal* signal)
...
@@ -401,6 +401,9 @@ void Dbdict::execFSCLOSECONF(Signal* signal)
case
FsConnectRecord
:
:
OPEN_READ_SCHEMA2
:
case
FsConnectRecord
:
:
OPEN_READ_SCHEMA2
:
openSchemaFile
(
signal
,
1
,
fsPtr
.
i
,
false
,
false
);
openSchemaFile
(
signal
,
1
,
fsPtr
.
i
,
false
,
false
);
break
;
break
;
case
FsConnectRecord
:
:
OPEN_READ_TAB_FILE2
:
openTableFile
(
signal
,
1
,
fsPtr
.
i
,
c_readTableRecord
.
tableId
,
false
);
break
;
default:
default:
jamLine
((
fsPtr
.
p
->
fsState
&
0xFFF
));
jamLine
((
fsPtr
.
p
->
fsState
&
0xFFF
));
ndbrequire
(
false
);
ndbrequire
(
false
);
...
@@ -780,8 +783,11 @@ void Dbdict::readTableConf(Signal* signal,
...
@@ -780,8 +783,11 @@ void Dbdict::readTableConf(Signal* signal,
void
Dbdict
::
readTableRef
(
Signal
*
signal
,
void
Dbdict
::
readTableRef
(
Signal
*
signal
,
FsConnectRecordPtr
fsPtr
)
FsConnectRecordPtr
fsPtr
)
{
{
/**
* First close corrupt file
*/
fsPtr
.
p
->
fsState
=
FsConnectRecord
::
OPEN_READ_TAB_FILE2
;
fsPtr
.
p
->
fsState
=
FsConnectRecord
::
OPEN_READ_TAB_FILE2
;
openTableFile
(
signal
,
1
,
fsPtr
.
i
,
c_readTableRecord
.
tableId
,
false
);
closeFile
(
signal
,
fsPtr
.
p
->
filePtr
,
fsPtr
.
i
);
return
;
return
;
}
//Dbdict::readTableRef()
}
//Dbdict::readTableRef()
...
...
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