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
47214454
Commit
47214454
authored
Aug 19, 2004
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cosmetic fix
parent
3e1493b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-3
No files found.
sql/ha_ndbcluster.cc
View file @
47214454
...
@@ -566,7 +566,7 @@ int ha_ndbcluster::build_index_list0()
...
@@ -566,7 +566,7 @@ int ha_ndbcluster::build_index_list0()
if
(
!
(
name
=
my_malloc
(
name_len
,
MYF
(
MY_WME
))))
if
(
!
(
name
=
my_malloc
(
name_len
,
MYF
(
MY_WME
))))
DBUG_RETURN
(
2
);
DBUG_RETURN
(
2
);
strxnmov
(
name
,
name_len
,
index_name
,
unique_suffix
,
NullS
);
strxnmov
(
name
,
name_len
,
index_name
,
unique_suffix
,
NullS
);
m_index
[
i
].
unique_name
=
name
;
m_index
[
i
].
unique_name
=
name
;
DBUG_PRINT
(
"info"
,
(
"Created unique index name: %s for index %d"
,
DBUG_PRINT
(
"info"
,
(
"Created unique index name: %s for index %d"
,
name
,
i
));
name
,
i
));
}
}
...
@@ -588,13 +588,13 @@ int ha_ndbcluster::build_index_list1()
...
@@ -588,13 +588,13 @@ int ha_ndbcluster::build_index_list1()
{
{
const
NDBINDEX
*
index
=
dict
->
getIndex
(
get_index_name
(
i
),
m_tabname
);
const
NDBINDEX
*
index
=
dict
->
getIndex
(
get_index_name
(
i
),
m_tabname
);
if
(
!
index
)
DBUG_RETURN
(
1
);
if
(
!
index
)
DBUG_RETURN
(
1
);
m_index
[
i
].
index
=
(
void
*
)
index
;
m_index
[
i
].
index
=
(
void
*
)
index
;
}
}
if
(
m_index
[
i
].
unique_name
)
if
(
m_index
[
i
].
unique_name
)
{
{
const
NDBINDEX
*
index
=
dict
->
getIndex
(
m_index
[
i
].
unique_name
,
m_tabname
);
const
NDBINDEX
*
index
=
dict
->
getIndex
(
m_index
[
i
].
unique_name
,
m_tabname
);
if
(
!
index
)
DBUG_RETURN
(
1
);
if
(
!
index
)
DBUG_RETURN
(
1
);
m_index
[
i
].
unique_index
=
(
void
*
)
index
;
m_index
[
i
].
unique_index
=
(
void
*
)
index
;
}
}
DBUG_PRINT
(
"info"
,
(
"Added handle to index %s"
,
get_index_name
(
i
)));
DBUG_PRINT
(
"info"
,
(
"Added handle to index %s"
,
get_index_name
(
i
)));
}
}
...
...
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