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
ce870852
Commit
ce870852
authored
Mar 07, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review fixes for Bug #8753 Invalid schema
object version after dropping index
parent
6fc6a752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-5
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+1
-1
No files found.
sql/ha_ndbcluster.cc
View file @
ce870852
...
...
@@ -328,7 +328,7 @@ void ha_ndbcluster::no_uncommitted_rows_reset(THD *thd)
# The mapped error code
*/
void
ha_ndbcluster
::
invalidateCache
()
void
ha_ndbcluster
::
invalidate
Dictionary
Cache
()
{
NDBDICT
*
dict
=
get_ndb
()
->
getDictionary
();
DBUG_PRINT
(
"info"
,
(
"invalidating %s"
,
m_tabname
));
...
...
@@ -341,8 +341,7 @@ void ha_ndbcluster::invalidateCache()
NDBINDEX
*
unique_index
=
(
NDBINDEX
*
)
m_index
[
i
].
unique_index
;
NDB_INDEX_TYPE
idx_type
=
m_index
[
i
].
type
;
switch
(
m_index
[
i
].
type
)
{
switch
(
idx_type
)
{
case
(
PRIMARY_KEY_ORDERED_INDEX
):
case
(
ORDERED_INDEX
):
dict
->
invalidateIndex
(
index
->
getName
(),
m_tabname
);
...
...
@@ -369,7 +368,7 @@ int ha_ndbcluster::ndb_err(NdbConnection *trans)
switch
(
err
.
classification
)
{
case
NdbError
:
:
SchemaError
:
{
invalidateCache
();
invalidate
Dictionary
Cache
();
break
;
}
default:
...
...
@@ -759,7 +758,7 @@ int ha_ndbcluster::get_metadata(const char *path)
if
(
!
invalidating_ndb_table
)
{
DBUG_PRINT
(
"info"
,
(
"Invalidating table"
));
invalidateCache
();
invalidate
Dictionary
Cache
();
invalidating_ndb_table
=
TRUE
;
}
else
...
...
sql/ha_ndbcluster.h
View file @
ce870852
...
...
@@ -201,7 +201,7 @@ class ha_ndbcluster: public handler
void
print_results
();
longlong
get_auto_increment
();
void
invalidateCache
();
void
invalidate
Dictionary
Cache
();
int
ndb_err
(
NdbConnection
*
);
bool
uses_blob_value
(
bool
all_fields
);
...
...
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