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
84859c38
Commit
84859c38
authored
Oct 04, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysqldev@production.mysql.com:/data0/mysqldev/my/mysql-5.0-release
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents
fd3be6a9
062f145b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+9
-5
sql/table.cc
sql/table.cc
+1
-0
sql/table.h
sql/table.h
+1
-1
No files found.
ndb/src/mgmsrv/Services.cpp
View file @
84859c38
...
...
@@ -940,7 +940,7 @@ printNodeStatus(OutputStream *output,
output
->
println
(
"node.%d.dynamic_id: %d"
,
nodeId
,
dynamicId
);
output
->
println
(
"node.%d.node_group: %d"
,
nodeId
,
nodeGroup
);
output
->
println
(
"node.%d.connect_count: %d"
,
nodeId
,
connectCount
);
output
->
println
(
"node.%d.address: %s"
,
nodeId
,
address
);
output
->
println
(
"node.%d.address: %s"
,
nodeId
,
address
?
address
:
""
);
}
}
...
...
sql/sql_table.cc
View file @
84859c38
...
...
@@ -4110,6 +4110,7 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt)
{
/* calculating table's checksum */
ha_checksum
crc
=
0
;
uchar
null_mask
=
256
-
(
1
<<
t
->
s
->
last_null_bit_pos
);
/* InnoDB must be told explicitly to retrieve all columns, because
this function does not set field->query_id in the columns to the
...
...
@@ -4130,9 +4131,12 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt)
continue
;
break
;
}
if
(
t
->
record
[
0
]
!=
(
byte
*
)
t
->
field
[
0
]
->
ptr
)
row_crc
=
my_checksum
(
row_crc
,
t
->
record
[
0
],
((
byte
*
)
t
->
field
[
0
]
->
ptr
)
-
t
->
record
[
0
]);
if
(
t
->
s
->
null_bytes
)
{
/* fix undefined null bits */
t
->
record
[
0
][
t
->
s
->
null_bytes
-
1
]
|=
null_mask
;
row_crc
=
my_checksum
(
row_crc
,
t
->
record
[
0
],
t
->
s
->
null_bytes
);
}
for
(
uint
i
=
0
;
i
<
t
->
s
->
fields
;
i
++
)
{
...
...
sql/table.cc
View file @
84859c38
...
...
@@ -874,6 +874,7 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
/* the correct null_bytes can now be set, since bitfields have been taken into account */
share
->
null_bytes
=
null_pos
-
(
uchar
*
)
outparam
->
null_flags
+
(
null_bit_pos
+
7
)
/
8
;
share
->
last_null_bit_pos
=
null_bit_pos
;
/* The table struct is now initialized; Open the table */
error
=
2
;
...
...
sql/table.h
View file @
84859c38
...
...
@@ -141,7 +141,7 @@ typedef struct st_table_share
enum
tmp_table_type
tmp_table
;
uint
blob_ptr_size
;
/* 4 or 8 */
uint
null_bytes
;
uint
null_bytes
,
last_null_bit_pos
;
uint
key_length
;
/* Length of table_cache_key */
uint
fields
;
/* Number of fields */
uint
rec_buff_length
;
/* Size of table->record[] buffer */
...
...
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