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
1abd960e
Commit
1abd960e
authored
19 years ago
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/my/mysql-4.1
parents
eee70ec1
67a95f5f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
30 deletions
+18
-30
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+8
-7
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+10
-23
No files found.
mysql-test/mysql-test-run.pl
View file @
1abd960e
...
@@ -458,7 +458,7 @@ sub command_line_setup () {
...
@@ -458,7 +458,7 @@ sub command_line_setup () {
'
ps-protocol
'
=>
\
$opt_ps_protocol
,
'
ps-protocol
'
=>
\
$opt_ps_protocol
,
'
bench
'
=>
\
$opt_bench
,
'
bench
'
=>
\
$opt_bench
,
'
small-bench
'
=>
\
$opt_small_bench
,
'
small-bench
'
=>
\
$opt_small_bench
,
'
no-manager
'
=>
\
$opt_no_manager
,
'
no-manager
'
=>
\
$opt_no_manager
,
# Currently not used
# Control what test suites or cases to run
# Control what test suites or cases to run
'
force
'
=>
\
$opt_force
,
'
force
'
=>
\
$opt_force
,
...
@@ -472,7 +472,7 @@ sub command_line_setup () {
...
@@ -472,7 +472,7 @@ sub command_line_setup () {
'
master_port=i
'
=>
\
$opt_master_myport
,
'
master_port=i
'
=>
\
$opt_master_myport
,
'
slave_port=i
'
=>
\
$opt_slave_myport
,
'
slave_port=i
'
=>
\
$opt_slave_myport
,
'
ndbcluster_port=i
'
=>
\
$opt_ndbcluster_port
,
'
ndbcluster_port=i
'
=>
\
$opt_ndbcluster_port
,
'
manager-port
'
=>
\
$opt_manager_port
,
'
manager-port
=i
'
=>
\
$opt_manager_port
,
# Currently not used
# Test case authoring
# Test case authoring
'
record
'
=>
\
$opt_record
,
'
record
'
=>
\
$opt_record
,
...
@@ -840,7 +840,7 @@ sub executable_setup () {
...
@@ -840,7 +840,7 @@ sub executable_setup () {
$exe_mysqlbinlog
=
"
$path_client_bindir
/mysqlbinlog
";
$exe_mysqlbinlog
=
"
$path_client_bindir
/mysqlbinlog
";
$exe_mysqladmin
=
"
$path_client_bindir
/mysqladmin
";
$exe_mysqladmin
=
"
$path_client_bindir
/mysqladmin
";
$exe_mysql
=
"
$path_client_bindir
/mysql
";
$exe_mysql
=
"
$path_client_bindir
/mysql
";
$exe_mysql_fix_system_tables
=
"
$path_client_bindir
/
scripts/
mysql_fix_privilege_tables
";
$exe_mysql_fix_system_tables
=
"
$path_client_bindir
/mysql_fix_privilege_tables
";
if
(
-
d
"
$glob_basedir
/share/mysql/english
"
)
if
(
-
d
"
$glob_basedir
/share/mysql/english
"
)
{
{
...
@@ -2219,7 +2219,8 @@ Options that specify ports
...
@@ -2219,7 +2219,8 @@ Options that specify ports
master_port=PORT Specify the port number used by the first master
master_port=PORT Specify the port number used by the first master
slave_port=PORT Specify the port number used by the first slave
slave_port=PORT Specify the port number used by the first slave
ndbcluster_port=i Specify the port number used by cluster FIXME
ndbcluster_port=PORT Specify the port number used by cluster
manager-port=PORT Specify the port number used by manager (currently not used)
Options for test case authoring
Options for test case authoring
...
...
This diff is collapsed.
Click to expand it.
sql/ha_ndbcluster.cc
View file @
1abd960e
...
@@ -464,13 +464,12 @@ bool ha_ndbcluster::get_error_message(int error,
...
@@ -464,13 +464,12 @@ bool ha_ndbcluster::get_error_message(int error,
}
}
#ifndef DBUG_OFF
/*
/*
Check if type is supported by NDB.
Check if type is supported by NDB.
TODO Use this once in open(), not in every operation
*/
*/
static
inline
bool
ndb_supported_type
(
enum_field_types
type
)
static
bool
ndb_supported_type
(
enum_field_types
type
)
{
{
switch
(
type
)
{
switch
(
type
)
{
case
MYSQL_TYPE_DECIMAL
:
case
MYSQL_TYPE_DECIMAL
:
...
@@ -502,6 +501,7 @@ static inline bool ndb_supported_type(enum_field_types type)
...
@@ -502,6 +501,7 @@ static inline bool ndb_supported_type(enum_field_types type)
}
}
return
FALSE
;
return
FALSE
;
}
}
#endif
/* !DBUG_OFF */
/*
/*
...
@@ -531,15 +531,10 @@ int ha_ndbcluster::set_ndb_key(NdbOperation *ndb_op, Field *field,
...
@@ -531,15 +531,10 @@ int ha_ndbcluster::set_ndb_key(NdbOperation *ndb_op, Field *field,
pack_len
));
pack_len
));
DBUG_DUMP
(
"key"
,
(
char
*
)
field_ptr
,
pack_len
);
DBUG_DUMP
(
"key"
,
(
char
*
)
field_ptr
,
pack_len
);
if
(
ndb_supported_type
(
field
->
type
()))
DBUG_ASSERT
(
ndb_supported_type
(
field
->
type
()));
{
DBUG_ASSERT
(
!
(
field
->
flags
&
BLOB_FLAG
));
if
(
!
(
field
->
flags
&
BLOB_FLAG
))
// Common implementation for most field types
// Common implementation for most field types
DBUG_RETURN
(
ndb_op
->
equal
(
fieldnr
,
(
char
*
)
field_ptr
,
pack_len
)
!=
0
);
DBUG_RETURN
(
ndb_op
->
equal
(
fieldnr
,
(
char
*
)
field_ptr
,
pack_len
)
!=
0
);
}
// Unhandled field types
DBUG_PRINT
(
"error"
,
(
"Field type %d not supported"
,
field
->
type
()));
DBUG_RETURN
(
2
);
}
}
...
@@ -558,7 +553,7 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
...
@@ -558,7 +553,7 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
pack_len
,
field
->
is_null
()
?
"Y"
:
"N"
));
pack_len
,
field
->
is_null
()
?
"Y"
:
"N"
));
DBUG_DUMP
(
"value"
,
(
char
*
)
field_ptr
,
pack_len
);
DBUG_DUMP
(
"value"
,
(
char
*
)
field_ptr
,
pack_len
);
if
(
ndb_supported_type
(
field
->
type
()))
DBUG_ASSERT
(
ndb_supported_type
(
field
->
type
()));
{
{
// ndb currently does not support size 0
// ndb currently does not support size 0
const
byte
*
empty_field
=
""
;
const
byte
*
empty_field
=
""
;
...
@@ -607,9 +602,6 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
...
@@ -607,9 +602,6 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
}
}
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
// Unhandled field types
DBUG_PRINT
(
"error"
,
(
"Field type %d not supported"
,
field
->
type
()));
DBUG_RETURN
(
2
);
}
}
...
@@ -705,8 +697,7 @@ int ha_ndbcluster::get_ndb_value(NdbOperation *ndb_op, Field *field,
...
@@ -705,8 +697,7 @@ int ha_ndbcluster::get_ndb_value(NdbOperation *ndb_op, Field *field,
if
(
field
!=
NULL
)
if
(
field
!=
NULL
)
{
{
DBUG_ASSERT
(
buf
);
DBUG_ASSERT
(
buf
);
if
(
ndb_supported_type
(
field
->
type
()))
DBUG_ASSERT
(
ndb_supported_type
(
field
->
type
()));
{
DBUG_ASSERT
(
field
->
ptr
!=
NULL
);
DBUG_ASSERT
(
field
->
ptr
!=
NULL
);
if
(
!
(
field
->
flags
&
BLOB_FLAG
))
if
(
!
(
field
->
flags
&
BLOB_FLAG
))
{
{
...
@@ -731,10 +722,6 @@ int ha_ndbcluster::get_ndb_value(NdbOperation *ndb_op, Field *field,
...
@@ -731,10 +722,6 @@ int ha_ndbcluster::get_ndb_value(NdbOperation *ndb_op, Field *field,
}
}
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
// Unhandled field types
DBUG_PRINT
(
"error"
,
(
"Field type %d not supported"
,
field
->
type
()));
DBUG_RETURN
(
2
);
}
// Used for hidden key only
// Used for hidden key only
m_value
[
fieldnr
].
rec
=
ndb_op
->
getValue
(
fieldnr
,
NULL
);
m_value
[
fieldnr
].
rec
=
ndb_op
->
getValue
(
fieldnr
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
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