summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormskold@mysql.com <>2006-06-12 09:27:04 +0200
committermskold@mysql.com <>2006-06-12 09:27:04 +0200
commit030f63fdab5e7f87fc9e0c7f1f58e0319c71f753 (patch)
tree35b1bbe3068ed91ffbb3596ae3fb46b5a5f25656 /sql
parent597e1444aaef1e8cd3b0715282266589fe67f668 (diff)
downloadmariadb-git-030f63fdab5e7f87fc9e0c7f1f58e0319c71f753.tar.gz
Moved back comment to correct method
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_ndbcluster.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 161b1ead2e0..1031c4f635c 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3426,11 +3426,10 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
}
/*
- Start a transaction for running a statement if one is not
- already running in a transaction. This will be the case in
- a BEGIN; COMMIT; block
- When using LOCK TABLE's external_lock will start a transaction
- since ndb does not currently does not support table locking
+ Unlock the last row read in an open scan.
+ Rows are unlocked by default in ndb, but
+ for SELECT FOR UPDATE and SELECT LOCK WIT SHARE MODE
+ locks are kept if unlock_row() is not called.
*/
void ha_ndbcluster::unlock_row()
@@ -3442,6 +3441,14 @@ void ha_ndbcluster::unlock_row()
DBUG_VOID_RETURN;
}
+/*
+ Start a transaction for running a statement if one is not
+ already running in a transaction. This will be the case in
+ a BEGIN; COMMIT; block
+ When using LOCK TABLE's external_lock will start a transaction
+ since ndb does not currently does not support table locking
+*/
+
int ha_ndbcluster::start_stmt(THD *thd)
{
int error=0;