summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <mskold/marty@mysql.com/linux.site>2006-12-14 16:27:14 +0100
committerunknown <mskold/marty@mysql.com/linux.site>2006-12-14 16:27:14 +0100
commit14f7ff0025996fc54372526a494f4798d6fae2c2 (patch)
tree489e36de59fcb659e11df02c946a6e89d6a9c9bb
parentd8ff6cdfc8185e167db1ec6eac4f9bd486439ca4 (diff)
downloadmariadb-git-14f7ff0025996fc54372526a494f4798d6fae2c2.tar.gz
Removed check for impossible error return
-rw-r--r--sql/ha_ndbcluster.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index ff5634d291c..149a7c83895 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -2956,13 +2956,10 @@ KEY* key_info;
DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error);
}
else if (type == UNIQUE_INDEX)
- {
- error= unique_index_scan(key_info,
- start_key->key,
- start_key->length,
- buf);
- DBUG_RETURN(error == HA_ERR_KEY_NOT_FOUND ? HA_ERR_END_OF_FILE : error);
- }
+ DBUG_RETURN(unique_index_scan(key_info,
+ start_key->key,
+ start_key->length,
+ buf));
break;
default:
break;