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
268ce5eb
Commit
268ce5eb
authored
Aug 24, 2007
by
joerg@trift2
Browse files
Options
Browse Files
Download
Plain Diff
Merge trift2.:/MySQL/M51/tmp-5.1
into trift2.:/MySQL/M51/push-5.1
parents
30433c29
af68cdb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
mysql-test/suite/ndb/r/ndb_dd_ddl.result
mysql-test/suite/ndb/r/ndb_dd_ddl.result
+2
-4
mysql-test/suite/ndb/t/ndb_dd_ddl.test
mysql-test/suite/ndb/t/ndb_dd_ddl.test
+12
-5
storage/ndb/tools/restore/Restore.cpp
storage/ndb/tools/restore/Restore.cpp
+4
-1
No files found.
mysql-test/suite/ndb/r/ndb_dd_ddl.result
View file @
268ce5eb
...
...
@@ -222,19 +222,17 @@ ENGINE NDB;
DROP LOGFILE GROUP lg1
ENGINE NDB;
**** End = And No = ****
create table t1 (a int primary key) engine = myisam;
create logfile group lg1 add undofile 'MYSQLTEST_VARDIR/master-data/test/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
create logfile group lg1 add undofile 'MYSQLTEST_VARDIR/tmp/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
ERROR HY000: Failed to create UNDOFILE
create logfile group lg1
add undofile 'undofile.dat'
initial_size 1M
undo_buffer_size = 1M
engine=ndb;
create tablespace ts1 add datafile 'MYSQLTEST_VARDIR/
master-data/test
/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
create tablespace ts1 add datafile 'MYSQLTEST_VARDIR/
tmp
/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
ERROR HY000: Failed to create DATAFILE
drop tablespace ts1
engine ndb;
ERROR HY000: Failed to drop TABLESPACE
drop logfile group lg1
engine ndb;
drop table t1;
mysql-test/suite/ndb/t/ndb_dd_ddl.test
View file @
268ce5eb
...
...
@@ -333,11 +333,18 @@ ENGINE NDB;
###
#
# bug#16341
create
table
t1
(
a
int
primary
key
)
engine
=
myisam
;
#create table t1 (a int primary key) engine = myisam;
# 2007-08-22 Jeb
# Removed the use of create table and manually
# created the file to cause failure due to
# inconsistant results on other OS
# see #bug30559
--
exec
touch
$MYSQLTEST_VARDIR
/
tmp
/
t1
.
frm
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
error
ER_CREATE_FILEGROUP_FAILED
--
eval
create
logfile
group
lg1
add
undofile
'$MYSQLTEST_VARDIR/
master-data/test
/t1.frm'
initial_size
1
M
undo_buffer_size
=
1
M
engine
=
ndb
;
--
eval
create
logfile
group
lg1
add
undofile
'$MYSQLTEST_VARDIR/
tmp
/t1.frm'
initial_size
1
M
undo_buffer_size
=
1
M
engine
=
ndb
;
create
logfile
group
lg1
add
undofile
'undofile.dat'
...
...
@@ -347,7 +354,7 @@ engine=ndb;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
error
ER_CREATE_FILEGROUP_FAILED
--
eval
create
tablespace
ts1
add
datafile
'$MYSQLTEST_VARDIR/
master-data/test
/t1.frm'
use
logfile
group lg1 initial_size 1M engine ndb
;
--
eval
create
tablespace
ts1
add
datafile
'$MYSQLTEST_VARDIR/
tmp
/t1.frm'
use
logfile
group lg1 initial_size 1M engine ndb
;
--
error
ER_DROP_FILEGROUP_FAILED
drop
tablespace
ts1
...
...
@@ -356,8 +363,8 @@ engine ndb;
drop
logfile
group
lg1
engine
ndb
;
drop
table
t1
;
#
drop table t1;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
.
frm
# End 5.1 test
storage/ndb/tools/restore/Restore.cpp
View file @
268ce5eb
...
...
@@ -607,7 +607,10 @@ RestoreDataIterator::getNextTuple(int & res)
attr_data
->
size
=
4
*
sz
;
//if (m_currentTable->getTableId() >= 2) { ndbout << "fix i=" << i << " off=" << ptr-buf_ptr << " attrId=" << attrId << endl; }
if
(
!
m_hostByteOrder
&&
attr_desc
->
m_column
->
getType
()
==
NdbDictionary
::
Column
::
Timestamp
)
attr_data
->
u_int32_value
[
0
]
=
Twiddle32
(
attr_data
->
u_int32_value
[
0
]);
if
(
!
Twiddle
(
attr_desc
,
attr_data
))
{
res
=
-
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