summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2001-01-16 06:02:05 +0200
committerunknown <monty@donna.mysql.com>2001-01-16 06:02:05 +0200
commit0365e2d3dceccb1dc3727336e1596869e3c1a180 (patch)
treed2fb03ef30e8182ca60cf1262a5a9db0e97a08a5 /sql/records.cc
parent9e67d0bec4c5d697c76ce05f12d424210ea0b656 (diff)
downloadmariadb-git-0365e2d3dceccb1dc3727336e1596869e3c1a180.tar.gz
Removed not used variable 'last_ref'
Fixed problem with negative DECIMAL() keys Fixed some bugs with NULL keys in BDB More mysql-test tests Docs/manual.texi: Changelog client/mysqltest.c: Added syntax: -- error #,#,... heap/hp_info.c: cleanup include/thr_lock.h: cleanup isam/pack_isam.c: cleanup myisam/mi_check.c: cleanup myisam/mi_extra.c: cleanup myisammrg/myrg_rkey.c: cleanup mysql-test/mysql-test-run.sh: Change to run test as root mysql-test/r/bdb.result: Many new tests mysql-test/r/func_system.result: Change to root user mysql-test/t/bdb.test: many more tests mysql-test/t/create.test: Change to work by test and root user sql/field.cc: Fixed problem with negative DECIMAL() keys sql/filesort.cc: cleanup sql/ha_berkeley.cc: Added purecoverage notes Fixed some bugs with NULL keys sql/init.cc: cleanup sql/mysql_priv.h: cleanup sql/mysqld.cc: cleanup sql/records.cc: cleanup sql/unireg.h: cleanup
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 0493e4183eb..89eae81fe27 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -164,8 +164,6 @@ static int rr_from_tempfile(READ_RECORD *info)
{
if (my_b_read(info->io_cache,info->ref_pos,info->ref_length))
return -1; /* End of file */
- if (TEST_IF_LASTREF(info->ref_pos,info->ref_length))
- return -1; /* File ends with this */
int tmp=info->file->rnd_pos(info->record,info->ref_pos);
if (tmp)
{
@@ -271,16 +269,6 @@ static int rr_from_cache(READ_RECORD *info)
ref_position=info->read_positions;
for (i=0 ; i < length ; i++,position+=info->ref_length)
{
- if (memcmp(position,last_ref,(size_s) info->ref_length) == 0)
- { /* End of file */
- if (!i)
- {
- DBUG_PRINT("info",("Found end of file"));
- return -1; /* Last record and no in buffert */
- }
- length=i; // rows in buffer
- break;
- }
memcpy(ref_position,position,(size_s) info->ref_length);
ref_position+=MAX_REFLENGTH;
int3store(ref_position,(long) i);