summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2006-03-30 03:11:37 +0300
committerunknown <monty@mysql.com>2006-03-30 03:11:37 +0300
commit4c0111460bae6b62999c1e17482f5560909cb482 (patch)
tree61eee37f41ff61237d032f69b555961c63a47442 /sql
parent2d6a51b4c8bac3cbed223836f8b2379b9a065d16 (diff)
downloadmariadb-git-4c0111460bae6b62999c1e17482f5560909cb482.tar.gz
Cleanup during review of new pushed code
sql/ha_heap.cc: Indentation fixes strings/ctype-ucs2.c: Simplify code tests/mysql_client_test.c: Remove compiler warnings
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_heap.cc18
1 files changed, 7 insertions, 11 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index ab0ab5d8b64..9c680daaf91 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -480,17 +480,13 @@ ha_rows ha_heap::records_in_range(uint inx, key_range *min_key,
min_key->flag != HA_READ_KEY_EXACT ||
max_key->flag != HA_READ_AFTER_KEY)
return HA_POS_ERROR; // Can only use exact keys
- else
- {
- if (records <= 1)
- return records;
- else
- {
- /* Assert that info() did run. We need current statistics here. */
- DBUG_ASSERT(key_stat_version == file->s->key_stat_version);
- return key->rec_per_key[key->key_parts-1];
- }
- }
+
+ if (records <= 1)
+ return records;
+
+ /* Assert that info() did run. We need current statistics here. */
+ DBUG_ASSERT(key_stat_version == file->s->key_stat_version);
+ return key->rec_per_key[key->key_parts-1];
}