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
ee7ffddf
Commit
ee7ffddf
authored
Mar 13, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#18026
incorrect handling of varsize primary key and charsets in tup-scan
parent
4561b28d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+9
-2
storage/ndb/src/kernel/blocks/dbtup/DbtupScan.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupScan.cpp
+1
-1
No files found.
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
ee7ffddf
...
@@ -119,9 +119,10 @@ operator<<(NdbOut& out, Dblqh::ScanRecord::ScanType state){
...
@@ -119,9 +119,10 @@ operator<<(NdbOut& out, Dblqh::ScanRecord::ScanType state){
const
Uint32
NR_ScanNo
=
0
;
const
Uint32
NR_ScanNo
=
0
;
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
NdbOut
&
tracenrout
=
ndbout
;
#include <NdbConfig.h>
NdbOut
*
tracenrout
=
0
;
static
int
TRACENR_FLAG
=
0
;
static
int
TRACENR_FLAG
=
0
;
#define TRACENR(x)
tracenrout
<< x
#define TRACENR(x)
(* tracenrout)
<< x
#define SET_TRACENR_FLAG TRACENR_FLAG = 1
#define SET_TRACENR_FLAG TRACENR_FLAG = 1
#define CLEAR_TRACENR_FLAG TRACENR_FLAG = 0
#define CLEAR_TRACENR_FLAG TRACENR_FLAG = 0
#else
#else
...
@@ -445,6 +446,12 @@ void Dblqh::execSTTOR(Signal* signal)
...
@@ -445,6 +446,12 @@ void Dblqh::execSTTOR(Signal* signal)
c_acc
=
(
Dbacc
*
)
globalData
.
getBlock
(
DBACC
);
c_acc
=
(
Dbacc
*
)
globalData
.
getBlock
(
DBACC
);
ndbrequire
(
c_tup
!=
0
&&
c_acc
!=
0
);
ndbrequire
(
c_tup
!=
0
&&
c_acc
!=
0
);
sendsttorryLab
(
signal
);
sendsttorryLab
(
signal
);
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
char
*
name
=
NdbConfig_SignalLogFileName
(
getOwnNodeId
());
tracenrout
=
new
NdbOut
(
*
new
FileOutputStream
(
fopen
(
name
,
"w+"
)));
#endif
return
;
return
;
break
;
break
;
case
4
:
case
4
:
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupScan.cpp
View file @
ee7ffddf
...
@@ -280,7 +280,7 @@ Dbtup::scanReply(Signal* signal, ScanOpPtr scanPtr)
...
@@ -280,7 +280,7 @@ Dbtup::scanReply(Signal* signal, ScanOpPtr scanPtr)
const
ScanPos
&
pos
=
scan
.
m_scanPos
;
const
ScanPos
&
pos
=
scan
.
m_scanPos
;
const
Local_key
&
key_mm
=
pos
.
m_key_mm
;
const
Local_key
&
key_mm
=
pos
.
m_key_mm
;
int
ret
=
tuxReadPk
(
fragPtr
.
i
,
pos
.
m_realpid_mm
,
key_mm
.
m_page_idx
,
int
ret
=
tuxReadPk
(
fragPtr
.
i
,
pos
.
m_realpid_mm
,
key_mm
.
m_page_idx
,
pkData
,
fals
e
);
pkData
,
tru
e
);
ndbrequire
(
ret
>
0
);
ndbrequire
(
ret
>
0
);
pkSize
=
ret
;
pkSize
=
ret
;
dbg
((
DBTUP
,
"PK size=%d data=%08x"
,
pkSize
,
pkData
[
0
]));
dbg
((
DBTUP
,
"PK size=%d data=%08x"
,
pkSize
,
pkData
[
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