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
50d2a6de
Commit
50d2a6de
authored
Jun 04, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents
79da6106
13066723
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+24
-6
No files found.
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
View file @
50d2a6de
...
@@ -2741,16 +2741,34 @@ void Ndbcntr::execSTART_ORD(Signal* signal){
...
@@ -2741,16 +2741,34 @@ void Ndbcntr::execSTART_ORD(Signal* signal){
c_missra
.
execSTART_ORD
(
signal
);
c_missra
.
execSTART_ORD
(
signal
);
}
}
#define CLEAR_DX 13
#define CLEAR_LCP 3
void
void
Ndbcntr
::
clearFilesystem
(
Signal
*
signal
){
Ndbcntr
::
clearFilesystem
(
Signal
*
signal
)
{
const
Uint32
lcp
=
c_fsRemoveCount
>=
CLEAR_DX
;
FsRemoveReq
*
req
=
(
FsRemoveReq
*
)
signal
->
getDataPtrSend
();
FsRemoveReq
*
req
=
(
FsRemoveReq
*
)
signal
->
getDataPtrSend
();
req
->
userReference
=
reference
();
req
->
userReference
=
reference
();
req
->
userPointer
=
0
;
req
->
userPointer
=
0
;
req
->
directory
=
1
;
req
->
directory
=
1
;
req
->
ownDirectory
=
1
;
req
->
ownDirectory
=
1
;
if
(
lcp
==
0
)
{
FsOpenReq
::
setVersion
(
req
->
fileNumber
,
3
);
FsOpenReq
::
setVersion
(
req
->
fileNumber
,
3
);
FsOpenReq
::
setSuffix
(
req
->
fileNumber
,
FsOpenReq
::
S_CTL
);
// Can by any...
FsOpenReq
::
setSuffix
(
req
->
fileNumber
,
FsOpenReq
::
S_CTL
);
// Can by any...
FsOpenReq
::
v1_setDisk
(
req
->
fileNumber
,
c_fsRemoveCount
);
FsOpenReq
::
v1_setDisk
(
req
->
fileNumber
,
c_fsRemoveCount
);
}
else
{
FsOpenReq
::
setVersion
(
req
->
fileNumber
,
5
);
FsOpenReq
::
setSuffix
(
req
->
fileNumber
,
FsOpenReq
::
S_DATA
);
FsOpenReq
::
v5_setLcpNo
(
req
->
fileNumber
,
c_fsRemoveCount
-
CLEAR_DX
);
FsOpenReq
::
v5_setTableId
(
req
->
fileNumber
,
0
);
FsOpenReq
::
v5_setFragmentId
(
req
->
fileNumber
,
0
);
}
sendSignal
(
NDBFS_REF
,
GSN_FSREMOVEREQ
,
signal
,
sendSignal
(
NDBFS_REF
,
GSN_FSREMOVEREQ
,
signal
,
FsRemoveReq
::
SignalLength
,
JBA
);
FsRemoveReq
::
SignalLength
,
JBA
);
c_fsRemoveCount
++
;
c_fsRemoveCount
++
;
...
@@ -2759,12 +2777,12 @@ Ndbcntr::clearFilesystem(Signal* signal){
...
@@ -2759,12 +2777,12 @@ Ndbcntr::clearFilesystem(Signal* signal){
void
void
Ndbcntr
::
execFSREMOVECONF
(
Signal
*
signal
){
Ndbcntr
::
execFSREMOVECONF
(
Signal
*
signal
){
jamEntry
();
jamEntry
();
if
(
c_fsRemoveCount
==
13
){
if
(
c_fsRemoveCount
==
CLEAR_DX
+
CLEAR_LCP
){
jam
();
jam
();
sendSttorry
(
signal
);
sendSttorry
(
signal
);
}
else
{
}
else
{
jam
();
jam
();
ndbrequire
(
c_fsRemoveCount
<
13
);
ndbrequire
(
c_fsRemoveCount
<
CLEAR_DX
+
CLEAR_LCP
);
clearFilesystem
(
signal
);
clearFilesystem
(
signal
);
}
//if
}
//if
}
}
...
...
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