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
69c17fe4
Commit
69c17fe4
authored
Apr 28, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
parents
47c2c963
92dc45c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-3
No files found.
sql/ha_ndbcluster.cc
View file @
69c17fe4
...
@@ -421,11 +421,15 @@ void ha_ndbcluster::no_uncommitted_rows_reset(THD *thd)
...
@@ -421,11 +421,15 @@ void ha_ndbcluster::no_uncommitted_rows_reset(THD *thd)
void
ha_ndbcluster
::
invalidate_dictionary_cache
(
bool
global
)
void
ha_ndbcluster
::
invalidate_dictionary_cache
(
bool
global
)
{
{
NDBDICT
*
dict
=
get_ndb
()
->
getDictionary
();
NDBDICT
*
dict
=
get_ndb
()
->
getDictionary
();
DBUG_ENTER
(
"invalidate_dictionary_cache"
);
DBUG_PRINT
(
"info"
,
(
"invalidating %s"
,
m_tabname
));
DBUG_PRINT
(
"info"
,
(
"invalidating %s"
,
m_tabname
));
if
(
global
)
if
(
global
)
{
{
if
(((
const
NDBTAB
*
)
m_table
)
->
getObjectStatus
()
const
NDBTAB
*
tab
=
dict
->
getTable
(
m_tabname
);
==
NdbDictionary
::
Object
::
Invalid
)
if
(
!
tab
)
DBUG_VOID_RETURN
;
if
(
tab
->
getObjectStatus
()
==
NdbDictionary
::
Object
::
Invalid
)
{
{
// Global cache has already been invalidated
// Global cache has already been invalidated
dict
->
removeCachedTable
(
m_tabname
);
dict
->
removeCachedTable
(
m_tabname
);
...
@@ -468,6 +472,7 @@ void ha_ndbcluster::invalidate_dictionary_cache(bool global)
...
@@ -468,6 +472,7 @@ void ha_ndbcluster::invalidate_dictionary_cache(bool global)
break
;
break
;
}
}
}
}
DBUG_VOID_RETURN
;
}
}
int
ha_ndbcluster
::
ndb_err
(
NdbTransaction
*
trans
)
int
ha_ndbcluster
::
ndb_err
(
NdbTransaction
*
trans
)
...
@@ -930,7 +935,6 @@ int ha_ndbcluster::get_metadata(const char *path)
...
@@ -930,7 +935,6 @@ int ha_ndbcluster::get_metadata(const char *path)
if
(
!
invalidating_ndb_table
)
if
(
!
invalidating_ndb_table
)
{
{
DBUG_PRINT
(
"info"
,
(
"Invalidating table"
));
DBUG_PRINT
(
"info"
,
(
"Invalidating table"
));
m_table
=
(
void
*
)
tab
;
invalidate_dictionary_cache
(
TRUE
);
invalidate_dictionary_cache
(
TRUE
);
invalidating_ndb_table
=
TRUE
;
invalidating_ndb_table
=
TRUE
;
}
}
...
...
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