summaryrefslogtreecommitdiff
path: root/storage/heap/hp_test2.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-10-23 18:44:13 +0300
committerMonty <monty@mariadb.org>2015-11-10 13:46:56 +0200
commit7cd2095cde11af4ac0478c5ff9a221a832e23586 (patch)
tree39b74a8441bfae11037e11b70493a36fd06a4ea4 /storage/heap/hp_test2.c
parent7ec655850397a0edfcea8c1fd82650824297e564 (diff)
downloadmariadb-git-7cd2095cde11af4ac0478c5ff9a221a832e23586.tar.gz
Sage cleanup in heap storage engine
Removed old not needed code withing #if Changed 0x%lx to %p
Diffstat (limited to 'storage/heap/hp_test2.c')
-rw-r--r--storage/heap/hp_test2.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/storage/heap/hp_test2.c b/storage/heap/hp_test2.c
index 13b49fbb7ec..657d5bcd01e 100644
--- a/storage/heap/hp_test2.c
+++ b/storage/heap/hp_test2.c
@@ -428,39 +428,6 @@ int main(int argc, char *argv[])
}
}
-#ifdef OLD_HEAP_VERSION
- {
- uint check;
- printf("- Read through all records with rnd\n");
- if (heap_extra(file,HA_EXTRA_RESET) || heap_extra(file,HA_EXTRA_CACHE))
- {
- puts("got error from heap_extra");
- goto end;
- }
- ant=check=0;
- while ((error=heap_rrnd(file,record,(ulong) -1)) != HA_ERR_END_OF_FILE &&
- ant < write_count + 10)
- {
- if (!error)
- {
- ant++;
- check+=calc_check(record,reclength);
- }
- }
- if (ant != write_count-opt_delete)
- {
- printf("rrnd: I can only find: %d records of %d\n", ant,
- write_count-opt_delete);
- goto end;
- }
- if (heap_extra(file,HA_EXTRA_NO_CACHE))
- {
- puts("got error from heap_extra(HA_EXTRA_NO_CACHE)");
- goto end;
- }
- }
-#endif
-
printf("- Read through all records with scan\n");
if (heap_reset(file) || heap_extra(file,HA_EXTRA_CACHE))
{
@@ -484,14 +451,6 @@ int main(int argc, char *argv[])
write_count-opt_delete);
goto end;
}
-#ifdef OLD_HEAP_VERSION
- if (check != check2)
- {
- puts("scan: Checksum didn't match reading with rrnd");
- goto end;
- }
-#endif
-
if (heap_extra(file,HA_EXTRA_NO_CACHE))
{