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
93a7c527
Commit
93a7c527
authored
Feb 17, 2006
by
jonas@eel.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb dd -
sync create tabe to undo log, so that undo for other table is not run after SR
parent
c71c156c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
+1
-0
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
+29
-4
No files found.
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
View file @
93a7c527
...
@@ -2632,6 +2632,7 @@ private:
...
@@ -2632,6 +2632,7 @@ private:
Uint32
gci
,
Uint32
logfile_group_id
);
Uint32
gci
,
Uint32
logfile_group_id
);
void
undo_createtable_callback
(
Signal
*
signal
,
Uint32
opPtrI
,
Uint32
unused
);
void
undo_createtable_callback
(
Signal
*
signal
,
Uint32
opPtrI
,
Uint32
unused
);
void
undo_createtable_logsync_callback
(
Signal
*
signal
,
Uint32
,
Uint32
);
void
disk_page_set_dirty
(
Ptr
<
Page
>
);
void
disk_page_set_dirty
(
Ptr
<
Page
>
);
void
restart_setup_page
(
Disk_alloc_info
&
,
Ptr
<
Page
>
);
void
restart_setup_page
(
Disk_alloc_info
&
,
Ptr
<
Page
>
);
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
View file @
93a7c527
...
@@ -605,7 +605,7 @@ Dbtup::undo_createtable_callback(Signal* signal, Uint32 opPtrI, Uint32 unused)
...
@@ -605,7 +605,7 @@ Dbtup::undo_createtable_callback(Signal* signal, Uint32 opPtrI, Uint32 unused)
getFragmentrec
(
regFragPtr
,
fragOperPtr
.
p
->
fragidFrag
,
regTabPtr
.
p
);
getFragmentrec
(
regFragPtr
,
fragOperPtr
.
p
->
fragidFrag
,
regTabPtr
.
p
);
ndbrequire
(
regFragPtr
.
i
!=
RNIL
);
ndbrequire
(
regFragPtr
.
i
!=
RNIL
);
Logfile_client
l
s
man
(
this
,
c_lgman
,
regFragPtr
.
p
->
m_logfile_group_id
);
Logfile_client
l
g
man
(
this
,
c_lgman
,
regFragPtr
.
p
->
m_logfile_group_id
);
Disk_undo
::
Create
create
;
Disk_undo
::
Create
create
;
create
.
m_type_length
=
Disk_undo
::
UNDO_CREATE
<<
16
|
(
sizeof
(
create
)
>>
2
);
create
.
m_type_length
=
Disk_undo
::
UNDO_CREATE
<<
16
|
(
sizeof
(
create
)
>>
2
);
...
@@ -613,14 +613,39 @@ Dbtup::undo_createtable_callback(Signal* signal, Uint32 opPtrI, Uint32 unused)
...
@@ -613,14 +613,39 @@ Dbtup::undo_createtable_callback(Signal* signal, Uint32 opPtrI, Uint32 unused)
Logfile_client
::
Change
c
[
1
]
=
{{
&
create
,
sizeof
(
create
)
>>
2
}
};
Logfile_client
::
Change
c
[
1
]
=
{{
&
create
,
sizeof
(
create
)
>>
2
}
};
Uint64
lsn
=
lsman
.
add_entry
(
c
,
1
);
Uint64
lsn
=
lgman
.
add_entry
(
c
,
1
);
Logfile_client
::
Request
req
;
req
.
m_callback
.
m_callbackData
=
fragOperPtr
.
i
;
req
.
m_callback
.
m_callbackFunction
=
safe_cast
(
&
Dbtup
::
undo_createtable_logsync_callback
);
int
ret
=
lgman
.
sync_lsn
(
signal
,
lsn
,
&
req
,
0
);
switch
(
ret
){
case
0
:
return
;
default:
ndbout_c
(
"ret: %d"
,
ret
);
ndbrequire
(
false
);
}
}
void
Dbtup
::
undo_createtable_logsync_callback
(
Signal
*
signal
,
Uint32
ptrI
,
Uint32
res
)
{
jamEntry
();
FragoperrecPtr
fragOperPtr
;
fragOperPtr
.
i
=
ptrI
;
ptrCheckGuard
(
fragOperPtr
,
cnoOfFragoprec
,
fragoperrec
);
signal
->
theData
[
0
]
=
fragOperPtr
.
p
->
lqhPtrFrag
;
signal
->
theData
[
0
]
=
fragOperPtr
.
p
->
lqhPtrFrag
;
signal
->
theData
[
1
]
=
1
;
signal
->
theData
[
1
]
=
1
;
sendSignal
(
fragOperPtr
.
p
->
lqhBlockrefFrag
,
GSN_TUP_ADD_ATTCONF
,
sendSignal
(
fragOperPtr
.
p
->
lqhBlockrefFrag
,
GSN_TUP_ADD_ATTCONF
,
signal
,
2
,
JBB
);
signal
,
2
,
JBB
);
releaseFragoperrec
(
fragOperPtr
);
releaseFragoperrec
(
fragOperPtr
);
}
}
/*
/*
...
...
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