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
29f8460e
Commit
29f8460e
authored
Apr 21, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
parents
f9a44aa2
ad9fba9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-1
No files found.
sql/ha_ndbcluster.cc
View file @
29f8460e
...
@@ -1894,6 +1894,7 @@ int ha_ndbcluster::write_row(byte *record)
...
@@ -1894,6 +1894,7 @@ int ha_ndbcluster::write_row(byte *record)
m_bulk_insert_not_flushed
=
TRUE
;
m_bulk_insert_not_flushed
=
TRUE
;
if
((
m_rows_to_insert
==
(
ha_rows
)
1
)
||
if
((
m_rows_to_insert
==
(
ha_rows
)
1
)
||
((
m_rows_inserted
%
m_bulk_insert_rows
)
==
0
)
||
((
m_rows_inserted
%
m_bulk_insert_rows
)
==
0
)
||
m_primary_key_update
||
set_blob_value
)
set_blob_value
)
{
{
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
...
@@ -2018,17 +2019,19 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data)
...
@@ -2018,17 +2019,19 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data)
if
(
delete_res
)
if
(
delete_res
)
{
{
DBUG_PRINT
(
"info"
,
(
"delete failed"
));
DBUG_PRINT
(
"info"
,
(
"delete failed"
));
// Undo write_row(new_data)
DBUG_RETURN
(
delete_res
);
DBUG_RETURN
(
delete_res
);
}
}
// Insert new row
// Insert new row
DBUG_PRINT
(
"info"
,
(
"delete succeded"
));
DBUG_PRINT
(
"info"
,
(
"delete succeded"
));
m_primary_key_update
=
TRUE
;
insert_res
=
write_row
(
new_data
);
insert_res
=
write_row
(
new_data
);
m_primary_key_update
=
FALSE
;
if
(
insert_res
)
if
(
insert_res
)
{
{
DBUG_PRINT
(
"info"
,
(
"insert failed"
));
DBUG_PRINT
(
"info"
,
(
"insert failed"
));
if
(
trans
->
commitStatus
()
==
NdbConnection
::
Started
)
if
(
trans
->
commitStatus
()
==
NdbConnection
::
Started
)
{
{
// Undo write_row(new_data)
m_primary_key_update
=
TRUE
;
m_primary_key_update
=
TRUE
;
insert_res
=
write_row
((
byte
*
)
old_data
);
insert_res
=
write_row
((
byte
*
)
old_data
);
m_primary_key_update
=
FALSE
;
m_primary_key_update
=
FALSE
;
...
...
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