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
09c9d90d
Commit
09c9d90d
authored
Feb 20, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-new
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
parents
c6211f38
9da47438
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
storage/ndb/tools/restore/Restore.cpp
storage/ndb/tools/restore/Restore.cpp
+8
-2
No files found.
storage/ndb/tools/restore/Restore.cpp
View file @
09c9d90d
...
@@ -515,7 +515,8 @@ RestoreDataIterator::getNextTuple(int & res)
...
@@ -515,7 +515,8 @@ RestoreDataIterator::getNextTuple(int & res)
const
AttributeDesc
*
attr_desc
=
m_tuple
.
getDesc
(
attrId
);
const
AttributeDesc
*
attr_desc
=
m_tuple
.
getDesc
(
attrId
);
// just a reminder - remove when backwards compat implemented
// just a reminder - remove when backwards compat implemented
if
(
false
&&
attr_desc
->
m_column
->
getNullable
()){
if
(
m_currentTable
->
backupVersion
<
MAKE_VERSION
(
5
,
1
,
3
)
&&
attr_desc
->
m_column
->
getNullable
()){
const
Uint32
ind
=
attr_desc
->
m_nullBitIndex
;
const
Uint32
ind
=
attr_desc
->
m_nullBitIndex
;
if
(
BitmaskImpl
::
get
(
m_currentTable
->
m_nullBitmaskSize
,
if
(
BitmaskImpl
::
get
(
m_currentTable
->
m_nullBitmaskSize
,
buf_ptr
,
ind
)){
buf_ptr
,
ind
)){
...
@@ -524,6 +525,11 @@ RestoreDataIterator::getNextTuple(int & res)
...
@@ -524,6 +525,11 @@ RestoreDataIterator::getNextTuple(int & res)
continue
;
continue
;
}
}
}
}
if
(
m_currentTable
->
backupVersion
<
MAKE_VERSION
(
5
,
1
,
3
))
{
sz
*=
4
;
}
attr_data
->
null
=
false
;
attr_data
->
null
=
false
;
attr_data
->
void_value
=
&
data
->
Data
[
0
];
attr_data
->
void_value
=
&
data
->
Data
[
0
];
...
@@ -842,7 +848,7 @@ void TableS::createAttr(NdbDictionary::Column *column)
...
@@ -842,7 +848,7 @@ void TableS::createAttr(NdbDictionary::Column *column)
}
}
// just a reminder - does not solve backwards compat
// just a reminder - does not solve backwards compat
if
(
backupVersion
<
MAKE_VERSION
(
5
,
1
,
0
))
if
(
backupVersion
<
MAKE_VERSION
(
5
,
1
,
3
))
{
{
d
->
m_nullBitIndex
=
m_noOfNullable
;
d
->
m_nullBitIndex
=
m_noOfNullable
;
m_noOfNullable
++
;
m_noOfNullable
++
;
...
...
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