summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorjoreland@mysql.com <>2004-10-05 13:51:32 +0200
committerjoreland@mysql.com <>2004-10-05 13:51:32 +0200
commitac7771becd8c4d42fd762c503432dd675db819e1 (patch)
treee403546bc11ff102f310670b7f52152ef874e780 /sql/ha_ndbcluster.cc
parent0a8bbe4d8598c310a6267f76b9a220e4ee39f969 (diff)
downloadmariadb-git-ac7771becd8c4d42fd762c503432dd675db819e1.tar.gz
Don't need to scan exclusive since keyinfo is sent anyway
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index e22d998decc..685dd50e128 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -827,10 +827,7 @@ int ha_ndbcluster::get_ndb_lock_type(enum thr_lock_type type)
if (type == TL_WRITE_ALLOW_WRITE)
return NdbOperation::LM_Exclusive;
else if (uses_blob_value(retrieve_all_fields))
- /*
- TODO use a new scan mode to read + lock + keyinfo
- */
- return NdbOperation::LM_Exclusive;
+ return NdbOperation::LM_Read;
else
return NdbOperation::LM_CommittedRead;
}