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
b091805e
Commit
b091805e
authored
Apr 19, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected wrong usage of hash
parent
65cee733
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+5
-2
No files found.
sql/ha_ndbcluster.cc
View file @
b091805e
...
@@ -370,8 +370,11 @@ THD_NDB_SHARE *
...
@@ -370,8 +370,11 @@ THD_NDB_SHARE *
Thd_ndb
::
get_open_table
(
THD
*
thd
,
const
void
*
key
)
Thd_ndb
::
get_open_table
(
THD
*
thd
,
const
void
*
key
)
{
{
DBUG_ENTER
(
"Thd_ndb::get_open_table"
);
DBUG_ENTER
(
"Thd_ndb::get_open_table"
);
HASH_SEARCH_STATE
state
;
THD_NDB_SHARE
*
thd_ndb_share
=
THD_NDB_SHARE
*
thd_ndb_share
=
(
THD_NDB_SHARE
*
)
hash_search
(
&
open_tables
,
(
byte
*
)
key
,
sizeof
(
key
));
(
THD_NDB_SHARE
*
)
hash_first
(
&
open_tables
,
(
byte
*
)
key
,
sizeof
(
key
),
&
state
);
while
(
thd_ndb_share
&&
thd_ndb_share
->
key
!=
key
)
thd_ndb_share
=
(
THD_NDB_SHARE
*
)
hash_next
(
&
open_tables
,
(
byte
*
)
key
,
sizeof
(
key
),
&
state
);
if
(
thd_ndb_share
==
0
)
if
(
thd_ndb_share
==
0
)
{
{
thd_ndb_share
=
(
THD_NDB_SHARE
*
)
alloc_root
(
&
thd
->
transaction
.
mem_root
,
thd_ndb_share
=
(
THD_NDB_SHARE
*
)
alloc_root
(
&
thd
->
transaction
.
mem_root
,
...
@@ -379,7 +382,7 @@ Thd_ndb::get_open_table(THD *thd, const void *key)
...
@@ -379,7 +382,7 @@ Thd_ndb::get_open_table(THD *thd, const void *key)
thd_ndb_share
->
key
=
key
;
thd_ndb_share
->
key
=
key
;
my_hash_insert
(
&
open_tables
,
(
byte
*
)
thd_ndb_share
);
my_hash_insert
(
&
open_tables
,
(
byte
*
)
thd_ndb_share
);
}
}
DBUG_PRINT
(
"exit"
,
(
"thd_ndb_share: 0x%x
"
,
thd_ndb_share
));
DBUG_PRINT
(
"exit"
,
(
"thd_ndb_share: 0x%x
key: 0x%x"
,
thd_ndb_share
,
key
));
DBUG_RETURN
(
thd_ndb_share
);
DBUG_RETURN
(
thd_ndb_share
);
}
}
...
...
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