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
6415a852
Commit
6415a852
authored
May 08, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
parents
db73bea3
e47e6f79
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
1 deletion
+46
-1
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+6
-0
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+15
-0
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
+3
-0
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+17
-0
ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
+5
-1
No files found.
mysql-test/r/ndb_basic.result
View file @
6415a852
...
...
@@ -667,6 +667,12 @@ counter datavalue
57 newval
58 newval
drop table t1;
create table t1 (a int primary key auto_increment) engine = ndb;
insert into t1() values (),(),(),(),(),(),(),(),(),(),(),();
insert into t1(a) values (20),(28);
insert into t1() values (),(),(),(),(),(),(),(),(),(),(),();
insert into t1() values (21), (22);
drop table t1;
CREATE TABLE t1 ( b INT ) PACK_KEYS = 0 ENGINE = ndb;
select * from t1;
b
...
...
mysql-test/t/ndb_basic.test
View file @
6415a852
...
...
@@ -606,6 +606,21 @@ select * from t1 order by counter;
drop
table
t1
;
#
# bug#27437
connection
con1
;
create
table
t1
(
a
int
primary
key
auto_increment
)
engine
=
ndb
;
insert
into
t1
()
values
(),(),(),(),(),(),(),(),(),(),(),();
connection
con2
;
insert
into
t1
(
a
)
values
(
20
),(
28
);
connection
con1
;
insert
into
t1
()
values
(),(),(),(),(),(),(),(),(),(),(),();
connection
con2
;
insert
into
t1
()
values
(
21
),
(
22
);
connection
con1
;
drop
table
t1
;
#
# BUG#14514 Creating table with packed key fails silently
#
...
...
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
View file @
6415a852
...
...
@@ -2059,6 +2059,9 @@ public:
Uint8
simpleRead
;
Uint8
seqNoReplica
;
Uint8
tcNodeFailrec
;
#ifdef VM_TRACE
Uint8
tupkeyref
;
#endif
};
/* p2c: size = 280 bytes */
typedef
Ptr
<
TcConnectionrec
>
TcConnectionrecPtr
;
...
...
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
6415a852
...
...
@@ -2765,6 +2765,12 @@ void Dblqh::execTUPKEYREF(Signal* signal)
tcConnectptr
.
i
=
tupKeyRef
->
userRef
;
terrorCode
=
tupKeyRef
->
errorCode
;
ptrCheckGuard
(
tcConnectptr
,
ctcConnectrecFileSize
,
tcConnectionrec
);
#ifdef VM_TRACE
ndbrequire
(
tcConnectptr
.
p
->
tupkeyref
==
0
);
tcConnectptr
.
p
->
tupkeyref
=
1
;
#endif
switch
(
tcConnectptr
.
p
->
transactionState
)
{
case
TcConnectionrec
:
:
WAIT_TUP
:
jam
();
...
...
@@ -3330,6 +3336,10 @@ void Dblqh::seizeTcrec()
locTcConnectptr
.
p
->
tcTimer
=
cLqhTimeOutCount
;
locTcConnectptr
.
p
->
tableref
=
RNIL
;
locTcConnectptr
.
p
->
savePointId
=
0
;
#ifdef VM_TRACE
locTcConnectptr
.
p
->
tupkeyref
=
0
;
#endif
cfirstfreeTcConrec
=
nextTc
;
tcConnectptr
=
locTcConnectptr
;
locTcConnectptr
.
p
->
connectState
=
TcConnectionrec
::
CONNECTED
;
...
...
@@ -5860,6 +5870,10 @@ void Dblqh::completeUnusualLab(Signal* signal)
void
Dblqh
::
releaseTcrec
(
Signal
*
signal
,
TcConnectionrecPtr
locTcConnectptr
)
{
jam
();
#ifdef VM_TRACE
locTcConnectptr
.
p
->
tupkeyref
=
0
;
#endif
locTcConnectptr
.
p
->
tcTimer
=
0
;
locTcConnectptr
.
p
->
transactionState
=
TcConnectionrec
::
TC_NOT_CONNECTED
;
locTcConnectptr
.
p
->
nextTcConnectrec
=
cfirstfreeTcConrec
;
...
...
@@ -5882,6 +5896,9 @@ void Dblqh::releaseTcrec(Signal* signal, TcConnectionrecPtr locTcConnectptr)
void
Dblqh
::
releaseTcrecLog
(
Signal
*
signal
,
TcConnectionrecPtr
locTcConnectptr
)
{
jam
();
#ifdef VM_TRACE
locTcConnectptr
.
p
->
tupkeyref
=
0
;
#endif
locTcConnectptr
.
p
->
tcTimer
=
0
;
locTcConnectptr
.
p
->
transactionState
=
TcConnectionrec
::
TC_NOT_CONNECTED
;
locTcConnectptr
.
p
->
nextTcConnectrec
=
cfirstfreeTcConrec
;
...
...
ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
View file @
6415a852
...
...
@@ -1138,7 +1138,11 @@ Dbtup::updateStartLab(Signal* signal,
regOperPtr
->
attrinbufLen
);
}
else
{
jam
();
retValue
=
interpreterStartLab
(
signal
,
pagePtr
,
regOperPtr
->
pageOffset
);
if
(
interpreterStartLab
(
signal
,
pagePtr
,
regOperPtr
->
pageOffset
)
==
-
1
)
{
jam
();
return
-
1
;
}
}
//if
if
(
retValue
==
-
1
)
{
...
...
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