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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b35d5910
Commit
b35d5910
authored
Jan 17, 2006
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post review fixes of WL#1892
parent
0b32dbca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+18
-19
No files found.
sql/ha_ndbcluster.cc
View file @
b35d5910
...
@@ -987,27 +987,24 @@ int ha_ndbcluster::get_metadata(const char *path)
...
@@ -987,27 +987,24 @@ int ha_ndbcluster::get_metadata(const char *path)
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
if
(
cmp_frm
(
tab
,
pack_data
,
pack_length
))
if
(
m_share
->
state
!=
NSS_ALTERED
&&
cmp_frm
(
tab
,
pack_data
,
pack_length
))
{
{
if
(
m_share
->
state
!=
NSS_ALTERED
)
if
(
!
invalidating_ndb_table
)
{
{
if
(
!
invalidating_ndb_table
)
DBUG_PRINT
(
"info"
,
(
"Invalidating table"
));
{
invalidate_dictionary_cache
(
TRUE
);
DBUG_PRINT
(
"info"
,
(
"Invalidating table"
));
invalidating_ndb_table
=
TRUE
;
invalidate_dictionary_cache
(
TRUE
);
}
invalidating_ndb_table
=
TRUE
;
else
}
{
else
DBUG_PRINT
(
"error"
,
{
(
"metadata, pack_length: %d getFrmLength: %d memcmp: %d"
,
DBUG_PRINT
(
"error"
,
pack_length
,
tab
->
getFrmLength
(),
(
"metadata, pack_length: %d getFrmLength: %d memcmp: %d"
,
memcmp
(
pack_data
,
tab
->
getFrmData
(),
pack_length
)));
pack_length
,
tab
->
getFrmLength
(),
DBUG_DUMP
(
"pack_data"
,
(
char
*
)
pack_data
,
pack_length
);
memcmp
(
pack_data
,
tab
->
getFrmData
(),
pack_length
)));
DBUG_DUMP
(
"frm"
,
(
char
*
)
tab
->
getFrmData
(),
tab
->
getFrmLength
());
DBUG_DUMP
(
"pack_data"
,
(
char
*
)
pack_data
,
pack_length
);
error
=
HA_ERR_TABLE_DEF_CHANGED
;
DBUG_DUMP
(
"frm"
,
(
char
*
)
tab
->
getFrmData
(),
tab
->
getFrmLength
());
invalidating_ndb_table
=
FALSE
;
error
=
HA_ERR_TABLE_DEF_CHANGED
;
invalidating_ndb_table
=
FALSE
;
}
}
}
}
}
else
else
...
@@ -5410,6 +5407,8 @@ int ndbcluster_find_all_files(THD *thd)
...
@@ -5410,6 +5407,8 @@ int ndbcluster_find_all_files(THD *thd)
sql_print_information
(
"NDB: mismatch in frm for %s.%s, discovering..."
,
sql_print_information
(
"NDB: mismatch in frm for %s.%s, discovering..."
,
elmt
.
database
,
elmt
.
name
);
elmt
.
database
,
elmt
.
name
);
}
}
if
(
share
)
free_share
(
&
share
);
}
}
my_free
((
char
*
)
data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
char
*
)
data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
char
*
)
pack_data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
char
*
)
pack_data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
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