diff options
author | unknown <ram@gw.udmsearch.izhnet.ru> | 2002-06-07 16:47:36 +0500 |
---|---|---|
committer | unknown <ram@gw.udmsearch.izhnet.ru> | 2002-06-07 16:47:36 +0500 |
commit | 6192996d17bb37e87a62a5e92f9e89330ccc6f28 (patch) | |
tree | 563098f1aa3cf848c7c56670c3c82ebf4dd4a9d6 /heap/hp_test1.c | |
parent | fa86b948379ca3929ebd8a7b941d6c2fbb26f8ec (diff) | |
download | mariadb-git-6192996d17bb37e87a62a5e92f9e89330ccc6f28.tar.gz |
heap_create() <-> heap_open()
Diffstat (limited to 'heap/hp_test1.c')
-rw-r--r-- | heap/hp_test1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/heap/hp_test1.c b/heap/hp_test1.c index 79edfe2effc..f619ac2e8db 100644 --- a/heap/hp_test1.c +++ b/heap/hp_test1.c @@ -53,8 +53,8 @@ int main(int argc, char **argv) bzero((gptr) flags,sizeof(flags)); printf("- Creating heap-file\n"); - heap_create(filename); - if (!(file=heap_open(filename,2,1,keyinfo,30,(ulong) flag*100000l,10l))) + if (heap_create(filename,1,keyinfo,30,(ulong) flag*100000l,10l) || + !(file= heap_open(filename, 2))) goto err; printf("- Writing records:s\n"); strmov(record," ..... key "); @@ -77,7 +77,7 @@ int main(int argc, char **argv) if (heap_close(file)) goto err; printf("- Reopening file\n"); - if (!(file=heap_open(filename,2,1,keyinfo,30,(ulong) flag*100000l,10l))) + if (!(file=heap_open(filename, 2))) goto err; printf("- Removing records\n"); |