diff options
author | joreland@mysql.com <> | 2004-10-05 13:51:32 +0200 |
---|---|---|
committer | joreland@mysql.com <> | 2004-10-05 13:51:32 +0200 |
commit | ac7771becd8c4d42fd762c503432dd675db819e1 (patch) | |
tree | e403546bc11ff102f310670b7f52152ef874e780 /sql/ha_ndbcluster.cc | |
parent | 0a8bbe4d8598c310a6267f76b9a220e4ee39f969 (diff) | |
download | mariadb-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.cc | 5 |
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; } |