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
b8f24215
Commit
b8f24215
authored
Sep 07, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into poseidon.(none):/home/tomas/mysql-4.1-ndb
parents
6204a73c
d3650df6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
+26
-8
mysql-test/r/ndb_alter_table.result
mysql-test/r/ndb_alter_table.result
+4
-2
mysql-test/t/ndb_alter_table.test
mysql-test/t/ndb_alter_table.test
+5
-2
ndb/src/common/mgmcommon/ConfigRetriever.cpp
ndb/src/common/mgmcommon/ConfigRetriever.cpp
+2
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+15
-1
No files found.
mysql-test/r/ndb_alter_table.result
View file @
b8f24215
...
...
@@ -75,9 +75,11 @@ drop table t1;
DROP TABLE IF EXISTS t2;
create table t2 (a int NOT NULL PRIMARY KEY) engine=myisam;
alter table t2 engine=ndbcluster;
select count(*) from t2;
delete from t2;
ERROR HY000: Got temporary error 1217 '1217' from ndbcluster
select count(*) from t2 where a+0 > 0;
count(*)
1
5
001
1
2
001
truncate table t2;
select count(*) from t2;
count(*)
...
...
mysql-test/t/ndb_alter_table.test
View file @
b8f24215
...
...
@@ -53,7 +53,7 @@ DROP TABLE IF EXISTS t2;
--
enable_warnings
create
table
t2
(
a
int
NOT
NULL
PRIMARY
KEY
)
engine
=
myisam
;
let
$
1
=
1
5
001
;
let
$
1
=
1
2
001
;
disable_query_log
;
while
(
$
1
)
{
...
...
@@ -62,7 +62,10 @@ while ($1)
}
enable_query_log
;
alter
table
t2
engine
=
ndbcluster
;
select
count
(
*
)
from
t2
;
--
error
1297
delete
from
t2
;
#to make sure we do a full table scan
select
count
(
*
)
from
t2
where
a
+
0
>
0
;
truncate
table
t2
;
select
count
(
*
)
from
t2
;
drop
table
t2
;
ndb/src/common/mgmcommon/ConfigRetriever.cpp
View file @
b8f24215
...
...
@@ -102,14 +102,13 @@ ConfigRetriever::do_connect(int exit_on_connect_failure){
if
(
ndb_mgm_connect
(
m_handle
,
tmp
.
c_str
())
==
0
)
{
return
0
;
}
if
(
exit_on_connect_failure
)
return
1
;
setError
(
CR_RETRY
,
ndb_mgm_get_latest_error_desc
(
m_handle
));
case
MgmId_File
:
break
;
}
}
if
(
exit_on_connect_failure
)
return
1
;
if
(
latestErrorType
==
CR_RETRY
){
REPORT_WARNING
(
"Failed to retrieve cluster configuration"
);
ndbout
<<
"(Cause of failure: "
<<
getErrorString
()
<<
")"
<<
endl
;
...
...
sql/ha_ndbcluster.cc
View file @
b8f24215
...
...
@@ -2603,7 +2603,6 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
(
NdbConnection
*
)
thd
->
transaction
.
all
.
ndb_tid
:
(
NdbConnection
*
)
thd
->
transaction
.
stmt
.
ndb_tid
;
DBUG_ASSERT
(
m_active_trans
);
// Start of transaction
retrieve_all_fields
=
FALSE
;
ops_pending
=
0
;
...
...
@@ -2628,7 +2627,18 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
thd
->
transaction
.
stmt
.
ndb_tid
=
0
;
}
}
if
(
m_active_trans
)
DBUG_PRINT
(
"warning"
,
(
"m_active_trans != NULL"
));
if
(
m_active_cursor
)
DBUG_PRINT
(
"warning"
,
(
"m_active_cursor != NULL"
));
if
(
blobs_pending
)
DBUG_PRINT
(
"warning"
,
(
"blobs_pending != 0"
));
if
(
ops_pending
)
DBUG_PRINT
(
"warning"
,
(
"ops_pending != 0L"
));
m_active_trans
=
NULL
;
m_active_cursor
=
NULL
;
ops_pending
=
0
;
blobs_pending
=
0
;
}
DBUG_RETURN
(
error
);
}
...
...
@@ -3242,7 +3252,11 @@ ha_ndbcluster::~ha_ndbcluster()
blobs_buffer
=
0
;
// Check for open cursor/transaction
if
(
m_active_cursor
)
{
}
DBUG_ASSERT
(
m_active_cursor
==
NULL
);
if
(
m_active_trans
)
{
}
DBUG_ASSERT
(
m_active_trans
==
NULL
);
DBUG_VOID_RETURN
;
...
...
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