summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorjonas@perch.ndb.mysql.com <>2006-10-19 09:38:37 +0200
committerjonas@perch.ndb.mysql.com <>2006-10-19 09:38:37 +0200
commit470e4daa14ec75d940d8e90eea66eed9d72c86ad (patch)
tree6955e753550152b5ebaa987e3b1c258e9134838d /sql/ha_ndbcluster.cc
parentfff4559edd704dd68b79e045f03f0308f640e20a (diff)
parent2b04fb22be204b8d2fda4aaa9aa066f6f52d279a (diff)
downloadmariadb-git-470e4daa14ec75d940d8e90eea66eed9d72c86ad.tar.gz
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index e9e2103cba7..a410ff1f218 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -1595,7 +1595,9 @@ int ha_ndbcluster::peek_indexed_rows(const byte *record)
int res;
DBUG_ENTER("peek_indexed_rows");
- NdbOperation::LockMode lm= NdbOperation::LM_Read;
+ NdbOperation::LockMode lm=
+ (NdbOperation::LockMode)get_ndb_lock_type(m_lock.type);
+
first= NULL;
if (table->s->primary_key != MAX_KEY)
{