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
d5b47c79
Commit
d5b47c79
authored
Sep 28, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_ndbcluster.cc:
testing foce send
parent
20ba684e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+27
-10
No files found.
sql/ha_ndbcluster.cc
View file @
d5b47c79
...
@@ -147,7 +147,25 @@ int execute_no_commit(ha_ndbcluster *h, NdbConnection *trans)
...
@@ -147,7 +147,25 @@ int execute_no_commit(ha_ndbcluster *h, NdbConnection *trans)
int
m_batch_execute
=
0
;
int
m_batch_execute
=
0
;
if
(
false
&&
m_batch_execute
)
if
(
false
&&
m_batch_execute
)
return
0
;
return
0
;
return
trans
->
execute
(
NoCommit
);
return
trans
->
execute
(
NoCommit
,
AbortOnError
,
1
);
}
inline
int
execute_commit
(
ha_ndbcluster
*
h
,
NdbConnection
*
trans
)
{
int
m_batch_execute
=
0
;
if
(
false
&&
m_batch_execute
)
return
0
;
return
trans
->
execute
(
Commit
,
AbortOnError
,
1
);
}
inline
int
execute_no_commit_ie
(
ha_ndbcluster
*
h
,
NdbConnection
*
trans
)
{
int
m_batch_execute
=
0
;
if
(
false
&&
m_batch_execute
)
return
0
;
return
trans
->
execute
(
NoCommit
,
IgnoreError
,
1
);
}
}
/*
/*
...
@@ -802,7 +820,7 @@ void ha_ndbcluster::release_metadata()
...
@@ -802,7 +820,7 @@ void ha_ndbcluster::release_metadata()
int
ha_ndbcluster
::
get_ndb_lock_type
(
enum
thr_lock_type
type
)
int
ha_ndbcluster
::
get_ndb_lock_type
(
enum
thr_lock_type
type
)
{
{
int
lm
;
int
lm
;
if
(
type
=
=
TL_WRITE_ALLOW_WRITE
)
if
(
type
>
=
TL_WRITE_ALLOW_WRITE
)
lm
=
NdbScanOperation
::
LM_Exclusive
;
lm
=
NdbScanOperation
::
LM_Exclusive
;
else
if
(
uses_blob_value
(
retrieve_all_fields
))
else
if
(
uses_blob_value
(
retrieve_all_fields
))
/*
/*
...
@@ -992,7 +1010,7 @@ int ha_ndbcluster::pk_read(const byte *key, uint key_len, byte *buf)
...
@@ -992,7 +1010,7 @@ int ha_ndbcluster::pk_read(const byte *key, uint key_len, byte *buf)
}
}
}
}
if
(
trans
->
execute
(
NoCommit
,
IgnoreError
)
!=
0
)
if
(
execute_no_commit_ie
(
this
,
trans
)
!=
0
)
{
{
table
->
status
=
STATUS_NOT_FOUND
;
table
->
status
=
STATUS_NOT_FOUND
;
DBUG_RETURN
(
ndb_err
(
trans
));
DBUG_RETURN
(
ndb_err
(
trans
));
...
@@ -1109,7 +1127,7 @@ int ha_ndbcluster::unique_index_read(const byte *key,
...
@@ -1109,7 +1127,7 @@ int ha_ndbcluster::unique_index_read(const byte *key,
}
}
}
}
if
(
trans
->
execute
(
NoCommit
,
IgnoreError
)
!=
0
)
if
(
execute_no_commit_ie
(
this
,
trans
)
!=
0
)
{
{
table
->
status
=
STATUS_NOT_FOUND
;
table
->
status
=
STATUS_NOT_FOUND
;
DBUG_RETURN
(
ndb_err
(
trans
));
DBUG_RETURN
(
ndb_err
(
trans
));
...
@@ -1186,7 +1204,7 @@ inline int ha_ndbcluster::next_result(byte *buf)
...
@@ -1186,7 +1204,7 @@ inline int ha_ndbcluster::next_result(byte *buf)
}
}
else
else
{
{
if
(
ops_pending
&&
(
trans
->
execute
(
Commit
)
!=
0
))
if
(
ops_pending
&&
(
execute_commit
(
this
,
trans
)
!=
0
))
DBUG_RETURN
(
ndb_err
(
trans
));
DBUG_RETURN
(
ndb_err
(
trans
));
trans
->
restart
();
trans
->
restart
();
}
}
...
@@ -1623,7 +1641,7 @@ int ha_ndbcluster::write_row(byte *record)
...
@@ -1623,7 +1641,7 @@ int ha_ndbcluster::write_row(byte *record)
}
}
else
else
{
{
if
(
trans
->
execute
(
Commit
)
!=
0
)
if
(
execute_commit
(
this
,
trans
)
!=
0
)
{
{
skip_auto_increment
=
true
;
skip_auto_increment
=
true
;
no_uncommitted_rows_execute_failure
();
no_uncommitted_rows_execute_failure
();
...
@@ -2665,14 +2683,13 @@ THR_LOCK_DATA **ha_ndbcluster::store_lock(THD *thd,
...
@@ -2665,14 +2683,13 @@ THR_LOCK_DATA **ha_ndbcluster::store_lock(THD *thd,
enum
thr_lock_type
lock_type
)
enum
thr_lock_type
lock_type
)
{
{
DBUG_ENTER
(
"store_lock"
);
DBUG_ENTER
(
"store_lock"
);
if
(
lock_type
!=
TL_IGNORE
&&
m_lock
.
type
==
TL_UNLOCK
)
if
(
lock_type
!=
TL_IGNORE
&&
m_lock
.
type
==
TL_UNLOCK
)
{
{
/* If we are not doing a LOCK TABLE, then allow multiple
/* If we are not doing a LOCK TABLE, then allow multiple
writers */
writers */
if
((
lock_type
>=
TL_WRITE_
CONCURRENT_INSERT
&&
if
((
lock_type
>=
TL_WRITE_
ALLOW_WRITE
&&
lock_type
<=
TL_WRITE
)
&&
!
thd
->
in_lock_tables
)
lock_type
<=
TL_WRITE
)
&&
!
thd
->
in_lock_tables
)
lock_type
=
TL_WRITE_ALLOW_WRITE
;
lock_type
=
TL_WRITE_ALLOW_WRITE
;
...
@@ -2910,7 +2927,7 @@ int ndbcluster_commit(THD *thd, void *ndb_transaction)
...
@@ -2910,7 +2927,7 @@ int ndbcluster_commit(THD *thd, void *ndb_transaction)
"stmt"
:
"all"
));
"stmt"
:
"all"
));
DBUG_ASSERT
(
ndb
&&
trans
);
DBUG_ASSERT
(
ndb
&&
trans
);
if
(
trans
->
execute
(
Commit
)
!=
0
)
if
(
execute_commit
(
0
,
trans
)
!=
0
)
{
{
const
NdbError
err
=
trans
->
getNdbError
();
const
NdbError
err
=
trans
->
getNdbError
();
const
NdbOperation
*
error_op
=
trans
->
getNdbErrorOperation
();
const
NdbOperation
*
error_op
=
trans
->
getNdbErrorOperation
();
...
...
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