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
76bedc6a
Commit
76bedc6a
authored
May 04, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in checksum with force varpart
parent
39a80cc2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
1 deletion
+57
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
mysql-test/r/ndb_row_format.result
mysql-test/r/ndb_row_format.result
+26
-0
mysql-test/t/ndb_row_format.test
mysql-test/t/ndb_row_format.test
+24
-0
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
+6
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
76bedc6a
...
@@ -2487,7 +2487,7 @@ sub ndbcluster_start_install ($) {
...
@@ -2487,7 +2487,7 @@ sub ndbcluster_start_install ($) {
else
else
{
{
$ndb_no_ord
=
32
;
$ndb_no_ord
=
32
;
$ndb_con_op
=
5
000
;
$ndb_con_op
=
10
000
;
$ndb_dmem
=
"
20M
";
$ndb_dmem
=
"
20M
";
$ndb_imem
=
"
1M
";
$ndb_imem
=
"
1M
";
$ndb_pbmem
=
"
4M
";
$ndb_pbmem
=
"
4M
";
...
...
mysql-test/r/ndb_row_format.result
View file @
76bedc6a
...
@@ -37,3 +37,29 @@ ROW_FORMAT=DYNAMIC
...
@@ -37,3 +37,29 @@ ROW_FORMAT=DYNAMIC
ENGINE=NDB;
ENGINE=NDB;
ForceVarPart: 1
ForceVarPart: 1
DROP TABLE t1;
DROP TABLE t1;
create table t1 (a int auto_increment primary key, b varchar(1000)) engine = ndb;
insert into t1(b) values ('0123456789');
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
insert into t1(b) select b from t1;
select count(*) from t1;
count(*)
1024
begin;
update t1 set b = concat(b,b);
update t1 set b = concat(b,b);
update t1 set b = concat(b,b);
update t1 set b = concat(b,b);
update t1 set b = concat(b,b);
rollback;
select count(*),b from t1 group by b;
count(*) b
1024 0123456789
drop table t1;
mysql-test/t/ndb_row_format.test
View file @
76bedc6a
...
@@ -60,3 +60,27 @@ CREATE TABLE t1
...
@@ -60,3 +60,27 @@ CREATE TABLE t1
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
exec
$NDB_TOOLS_DIR
/
ndb_desc
--
no
-
defaults
-
d
test
t1
|
grep
ForceVarPart
--
exec
$NDB_TOOLS_DIR
/
ndb_desc
--
no
-
defaults
-
d
test
t1
|
grep
ForceVarPart
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# test of bug
create
table
t1
(
a
int
auto_increment
primary
key
,
b
varchar
(
1000
))
engine
=
ndb
;
insert
into
t1
(
b
)
values
(
'0123456789'
);
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
insert
into
t1
(
b
)
select
b
from
t1
;
select
count
(
*
)
from
t1
;
begin
;
update
t1
set
b
=
concat
(
b
,
b
);
update
t1
set
b
=
concat
(
b
,
b
);
update
t1
set
b
=
concat
(
b
,
b
);
update
t1
set
b
=
concat
(
b
,
b
);
update
t1
set
b
=
concat
(
b
,
b
);
rollback
;
select
count
(
*
),
b
from
t1
group
by
b
;
drop
table
t1
;
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
View file @
76bedc6a
...
@@ -2846,6 +2846,12 @@ Dbtup::handle_size_change_after_update(KeyReqStruct* req_struct,
...
@@ -2846,6 +2846,12 @@ Dbtup::handle_size_change_after_update(KeyReqStruct* req_struct,
if
(
unlikely
(
realloc_var_part
(
regFragPtr
,
regTabPtr
,
pagePtr
,
if
(
unlikely
(
realloc_var_part
(
regFragPtr
,
regTabPtr
,
pagePtr
,
refptr
,
alloc
,
needed
)))
refptr
,
alloc
,
needed
)))
return
-
1
;
return
-
1
;
if
(
regTabPtr
->
m_bits
&
Tablerec
::
TR_Checksum
)
{
jam
();
setChecksum
(
org
,
regTabPtr
);
}
}
}
req_struct
->
m_tuple_ptr
->
m_header_bits
=
copy_bits
;
req_struct
->
m_tuple_ptr
->
m_header_bits
=
copy_bits
;
return
0
;
return
0
;
...
...
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