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
cfd4183e
Commit
cfd4183e
authored
Apr 27, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#24951, Data nodes died(lgman) during creating tables
parent
e2dea46a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
+6
-2
storage/ndb/src/kernel/blocks/lgman.cpp
storage/ndb/src/kernel/blocks/lgman.cpp
+5
-0
No files found.
storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp
View file @
cfd4183e
...
@@ -599,8 +599,12 @@ void Dbtup::execTUP_ADD_ATTRREQ(Signal* signal)
...
@@ -599,8 +599,12 @@ void Dbtup::execTUP_ADD_ATTRREQ(Signal* signal)
Uint32
sz
=
sizeof
(
Disk_undo
::
Create
)
>>
2
;
Uint32
sz
=
sizeof
(
Disk_undo
::
Create
)
>>
2
;
Logfile_client
lgman
(
this
,
c_lgman
,
regFragPtr
.
p
->
m_logfile_group_id
);
Logfile_client
lgman
(
this
,
c_lgman
,
regFragPtr
.
p
->
m_logfile_group_id
);
(
void
)
c_lgman
->
alloc_log_space
(
regFragPtr
.
p
->
m_logfile_group_id
,
if
((
terrorCode
=
sz
);
c_lgman
->
alloc_log_space
(
regFragPtr
.
p
->
m_logfile_group_id
,
sz
)))
{
addattrrefuseLab
(
signal
,
regFragPtr
,
fragOperPtr
,
regTabPtr
.
p
,
fragId
);
return
;
}
int
res
=
lgman
.
get_log_buffer
(
signal
,
sz
,
&
cb
);
int
res
=
lgman
.
get_log_buffer
(
signal
,
sz
,
&
cb
);
switch
(
res
){
switch
(
res
){
...
...
storage/ndb/src/kernel/blocks/lgman.cpp
View file @
cfd4183e
...
@@ -1961,6 +1961,11 @@ Lgman::alloc_log_space(Uint32 ref, Uint32 words)
...
@@ -1961,6 +1961,11 @@ Lgman::alloc_log_space(Uint32 ref, Uint32 words)
if
(
m_logfile_group_hash
.
find
(
ptr
,
key
)
&&
if
(
m_logfile_group_hash
.
find
(
ptr
,
key
)
&&
ptr
.
p
->
m_free_file_words
>=
(
words
+
(
4
*
File_formats
::
UNDO_PAGE_WORDS
)))
ptr
.
p
->
m_free_file_words
>=
(
words
+
(
4
*
File_formats
::
UNDO_PAGE_WORDS
)))
{
{
Uint32
group_pages
=
((
ptr
.
p
->
m_free_file_words
+
File_formats
::
UNDO_PAGE_WORDS
-
1
)
/
File_formats
::
UNDO_PAGE_WORDS
);
if
(
group_pages
>
compute_free_file_pages
(
ptr
))
return
1501
;
ptr
.
p
->
m_free_file_words
-=
words
;
ptr
.
p
->
m_free_file_words
-=
words
;
validate_logfile_group
(
ptr
,
"alloc_log_space"
);
validate_logfile_group
(
ptr
,
"alloc_log_space"
);
return
0
;
return
0
;
...
...
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