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
e2d42957
Commit
e2d42957
authored
Jan 27, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-new
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
parents
23d10724
9c46ce87
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+24
-8
storage/ndb/src/kernel/blocks/lgman.cpp
storage/ndb/src/kernel/blocks/lgman.cpp
+1
-0
No files found.
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
e2d42957
...
...
@@ -287,6 +287,20 @@ Dbdict::execDUMP_STATE_ORD(Signal* signal)
MEMINFO
(
"c_rope_pool"
,
c_rope_pool
);
}
if
(
signal
->
theData
[
0
]
==
1227
)
{
DLHashTable
<
DictObject
>::
Iterator
iter
;
bool
ok
=
c_obj_hash
.
first
(
iter
);
for
(;
ok
;
ok
=
c_obj_hash
.
next
(
iter
))
{
Rope
name
(
c_rope_pool
,
iter
.
curr
.
p
->
m_name
);
const
Uint32
size
=
name
.
size
();
char
buf
[
1024
];
name
.
copy
(
buf
);
ndbout_c
(
"%s m_ref_count: %d"
,
buf
,
iter
.
curr
.
p
->
m_ref_count
);
}
}
return
;
}
//Dbdict::execDUMP_STATE_ORD()
...
...
@@ -5080,13 +5094,6 @@ Dbdict::createTab_prepare(Signal* signal, CreateTabReq * req){
safe_cast
(
&
Dbdict
::
createTab_writeSchemaConf1
);
updateSchemaState
(
signal
,
tableId
,
&
tabEntry
,
&
callback
);
if
(
tabPtr
.
p
->
m_tablespace_id
!=
RNIL
)
{
FilegroupPtr
ptr
;
ndbrequire
(
c_filegroup_hash
.
find
(
ptr
,
tabPtr
.
p
->
m_tablespace_id
));
increase_ref_count
(
ptr
.
p
->
m_obj_ptr_i
);
}
}
void
getSection
(
SegmentedSectionPtr
&
ptr
,
Uint32
i
);
...
...
@@ -6231,6 +6238,15 @@ void Dbdict::handleTabInfo(SimpleProperties::Reader & it,
{
tabRequire
(
false
,
CreateTableRef
::
InvalidTablespaceVersion
);
}
{
/**
* Increase ref count
*/
FilegroupPtr
ptr
;
ndbrequire
(
c_filegroup_hash
.
find
(
ptr
,
tablePtr
.
p
->
m_tablespace_id
));
increase_ref_count
(
ptr
.
p
->
m_obj_ptr_i
);
}
}
}
//handleTabInfo()
...
...
storage/ndb/src/kernel/blocks/lgman.cpp
View file @
e2d42957
...
...
@@ -2824,6 +2824,7 @@ Lgman::stop_run_undo_log(Signal* signal)
(
Uint64
)
compute_free_file_pages
(
ptr
);
ptr
.
p
->
m_next_reply_ptr_i
=
ptr
.
p
->
m_file_pos
[
HEAD
].
m_ptr_i
;
ptr
.
p
->
m_state
|=
Logfile_group
::
LG_FLUSH_THREAD
;
signal
->
theData
[
0
]
=
LgmanContinueB
::
FLUSH_LOG
;
signal
->
theData
[
1
]
=
ptr
.
i
;
sendSignal
(
reference
(),
GSN_CONTINUEB
,
signal
,
2
,
JBB
);
...
...
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