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
f63f994b
Commit
f63f994b
authored
Sep 08, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#at - testNdbApi WaitUntilReady, MaxNdb
fix delete of dictionary before connection has been established
parent
e9edf3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+21
-15
No files found.
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
f63f994b
...
@@ -596,26 +596,32 @@ static int f_dictionary_count = 0;
...
@@ -596,26 +596,32 @@ static int f_dictionary_count = 0;
NdbDictionaryImpl
::~
NdbDictionaryImpl
()
NdbDictionaryImpl
::~
NdbDictionaryImpl
()
{
{
NdbElement_t
<
NdbTableImpl
>
*
curr
=
m_localHash
.
m_tableHash
.
getNext
(
0
);
NdbElement_t
<
NdbTableImpl
>
*
curr
=
m_localHash
.
m_tableHash
.
getNext
(
0
);
while
(
curr
!=
0
){
if
(
m_globalHash
){
while
(
curr
!=
0
){
m_globalHash
->
lock
();
m_globalHash
->
release
(
curr
->
theData
);
m_globalHash
->
unlock
();
curr
=
m_localHash
.
m_tableHash
.
getNext
(
curr
);
}
m_globalHash
->
lock
();
m_globalHash
->
lock
();
m_globalHash
->
release
(
curr
->
theData
);
if
(
--
f_dictionary_count
==
0
){
delete
NdbDictionary
::
Column
::
FRAGMENT
;
delete
NdbDictionary
::
Column
::
ROW_COUNT
;
delete
NdbDictionary
::
Column
::
COMMIT_COUNT
;
NdbDictionary
::
Column
::
FRAGMENT
=
0
;
NdbDictionary
::
Column
::
ROW_COUNT
=
0
;
NdbDictionary
::
Column
::
COMMIT_COUNT
=
0
;
}
m_globalHash
->
unlock
();
m_globalHash
->
unlock
();
}
else
{
curr
=
m_localHash
.
m_tableHash
.
getNext
(
curr
);
assert
(
curr
==
0
);
}
m_globalHash
->
lock
();
if
(
--
f_dictionary_count
==
0
){
delete
NdbDictionary
::
Column
::
FRAGMENT
;
delete
NdbDictionary
::
Column
::
ROW_COUNT
;
delete
NdbDictionary
::
Column
::
COMMIT_COUNT
;
NdbDictionary
::
Column
::
FRAGMENT
=
0
;
NdbDictionary
::
Column
::
ROW_COUNT
=
0
;
NdbDictionary
::
Column
::
COMMIT_COUNT
=
0
;
}
}
m_globalHash
->
unlock
();
}
}
#if 0
#if 0
bool
bool
NdbDictionaryImpl::setTransporter(class TransporterFacade * tf)
NdbDictionaryImpl::setTransporter(class TransporterFacade * tf)
...
...
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