summaryrefslogtreecommitdiff
path: root/storage/heap/hp_test1.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_test1.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_test1.c')
-rw-r--r--storage/heap/hp_test1.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/storage/heap/hp_test1.c b/storage/heap/hp_test1.c
index e6283f171c4..9b14610fe30 100644
--- a/storage/heap/hp_test1.c
+++ b/storage/heap/hp_test1.c
@@ -136,31 +136,6 @@ int main(int argc, char **argv)
}
}
-#ifdef OLD_HEAP_VERSION
- {
- int found;
- printf("- Reading records with position\n");
- for (i=1,found=0 ; i <= 30 ; i++)
- {
- my_errno=0;
- if ((error=heap_rrnd(file,record,i == 1 ? 0L : (ulong) -1)) ==
- HA_ERR_END_OF_FILE)
- {
- if (found != 25-deleted)
- printf("Found only %d of %d records\n",found,25-deleted);
- break;
- }
- if (!error)
- found++;
- if (verbose || (error != 0 && error != HA_ERR_RECORD_DELETED))
- {
- printf("pos: %2d ni_rrnd: %3d my_errno: %3d record: %s\n",
- i-1,error,my_errno,(char*) record+1);
- }
- }
- }
-#endif
-
if (heap_close(file) || hp_panic(HA_PANIC_CLOSE))
goto err;
my_end(MY_GIVE_INFO);