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
61b52a97
Commit
61b52a97
authored
Nov 02, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/pekka/ndb/version/my41
parents
dacaea4d
6dc61f1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
ndb/src/ndbapi/NdbBlob.cpp
ndb/src/ndbapi/NdbBlob.cpp
+11
-8
No files found.
ndb/src/ndbapi/NdbBlob.cpp
View file @
61b52a97
...
@@ -97,22 +97,24 @@ NdbBlob::getBlobTable(NdbTableImpl& bt, const NdbTableImpl* t, const NdbColumnIm
...
@@ -97,22 +97,24 @@ NdbBlob::getBlobTable(NdbTableImpl& bt, const NdbTableImpl* t, const NdbColumnIm
bt
.
setName
(
btname
);
bt
.
setName
(
btname
);
bt
.
setLogging
(
t
->
getLogging
());
bt
.
setLogging
(
t
->
getLogging
());
bt
.
setFragmentType
(
t
->
getFragmentType
());
bt
.
setFragmentType
(
t
->
getFragmentType
());
{
NdbDictionary
::
Column
bc
(
"
DIST
"
);
{
NdbDictionary
::
Column
bc
(
"
PK
"
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
assert
(
t
->
m_sizeOfKeysInWords
!=
0
);
bc
.
setLength
(
t
->
m_sizeOfKeysInWords
);
bc
.
setPrimaryKey
(
true
);
bc
.
setPrimaryKey
(
true
);
bc
.
setDistributionKey
(
true
);
bc
.
setDistributionKey
(
true
);
bt
.
addColumn
(
bc
);
bt
.
addColumn
(
bc
);
}
}
{
NdbDictionary
::
Column
bc
(
"
PAR
T"
);
{
NdbDictionary
::
Column
bc
(
"
DIS
T"
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
bc
.
setPrimaryKey
(
true
);
bc
.
setPrimaryKey
(
true
);
bc
.
setDistributionKey
(
true
);
bt
.
addColumn
(
bc
);
bt
.
addColumn
(
bc
);
}
}
{
NdbDictionary
::
Column
bc
(
"P
K
"
);
{
NdbDictionary
::
Column
bc
(
"P
ART
"
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
bc
.
setType
(
NdbDictionary
::
Column
::
Unsigned
);
assert
(
t
->
m_sizeOfKeysInWords
!=
0
);
bc
.
setLength
(
t
->
m_sizeOfKeysInWords
);
bc
.
setPrimaryKey
(
true
);
bc
.
setPrimaryKey
(
true
);
bc
.
setDistributionKey
(
false
);
bt
.
addColumn
(
bc
);
bt
.
addColumn
(
bc
);
}
}
{
NdbDictionary
::
Column
bc
(
"DATA"
);
{
NdbDictionary
::
Column
bc
(
"DATA"
);
...
@@ -392,9 +394,10 @@ NdbBlob::setPartKeyValue(NdbOperation* anOp, Uint32 part)
...
@@ -392,9 +394,10 @@ NdbBlob::setPartKeyValue(NdbOperation* anOp, Uint32 part)
Uint32
*
data
=
(
Uint32
*
)
theKeyBuf
.
data
;
Uint32
*
data
=
(
Uint32
*
)
theKeyBuf
.
data
;
unsigned
size
=
theTable
->
m_sizeOfKeysInWords
;
unsigned
size
=
theTable
->
m_sizeOfKeysInWords
;
DBG
(
"setPartKeyValue dist="
<<
getDistKey
(
part
)
<<
" part="
<<
part
<<
" key="
<<
ndb_blob_debug
(
data
,
size
));
DBG
(
"setPartKeyValue dist="
<<
getDistKey
(
part
)
<<
" part="
<<
part
<<
" key="
<<
ndb_blob_debug
(
data
,
size
));
if
(
anOp
->
equal
((
Uint32
)
0
,
getDistKey
(
part
))
==
-
1
||
// TODO use attr ids after compatibility with 4.1.7 not needed
anOp
->
equal
((
Uint32
)
1
,
part
)
==
-
1
||
if
(
anOp
->
equal
(
"PK"
,
theKeyBuf
.
data
)
==
-
1
||
anOp
->
equal
((
Uint32
)
2
,
theKeyBuf
.
data
)
==
-
1
)
{
anOp
->
equal
(
"DIST"
,
getDistKey
(
part
))
==
-
1
||
anOp
->
equal
(
"PART"
,
part
)
==
-
1
)
{
setErrorCode
(
anOp
);
setErrorCode
(
anOp
);
return
-
1
;
return
-
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