summaryrefslogtreecommitdiff
path: root/storage/maria/ma_test3.c
diff options
context:
space:
mode:
authorunknown <bell@pwbook.sanja.is.com.ua>2007-04-04 23:37:09 +0300
committerunknown <bell@pwbook.sanja.is.com.ua>2007-04-04 23:37:09 +0300
commit39d64a1d2565b09307d11b2a665f3f2c6bc8106e (patch)
treef06eaccb6a5b46b3894e7939c81911d30e765fd5 /storage/maria/ma_test3.c
parenta3f9083bb4649530b210423e21589803c075bb9e (diff)
downloadmariadb-git-39d64a1d2565b09307d11b2a665f3f2c6bc8106e.tar.gz
Pagecache integration for review.
storage/maria/unittest/ma_pagecache_single.c: Rename: storage/maria/unittest/mf_pagecache_single.c -> storage/maria/unittest/ma_pagecache_single.c include/maria.h: Pagecache integration. include/myisamchk.h: Pagecache integration. include/pagecache.h: removed WRITE_NOW mode Pagecache parameters management. mysys/Makefile.am: Safe hash procedures moved to the separate file. Pagecache moved to maria engine directory. mysys/mf_keycaches.c: Safe hash procedures moved to the separate file. sql/handler.cc: Pageccahe integration. sql/handler.h: Pagecache integration. sql/mysql_priv.h: pagecache integration sql/mysqld.cc: pagecache integration sql/set_var.cc: Pagecache integration. sql/set_var.h: Pagecache integration. storage/maria/Makefile.am: Pagecache integration and moving to maria engine directory. storage/maria/ha_maria.cc: File changed on PAGECCAHE_FILE. storage/maria/ma_bitmap.c: Pagecache integration. storage/maria/ma_blockrec.c: Pagecache integration. storage/maria/ma_check.c: File changed on PAGECCAHE_FILE. Pagecache integration. storage/maria/ma_close.c: File changed on PAGECCAHE_FILE. storage/maria/ma_delete_all.c: File changed on PAGECCAHE_FILE. storage/maria/ma_dynrec.c: File changed on PAGECCAHE_FILE. storage/maria/ma_extra.c: File changed on PAGECCAHE_FILE. storage/maria/ma_info.c: File changed on PAGECCAHE_FILE. storage/maria/ma_keycache.c: Pagecache integration. storage/maria/ma_locking.c: File changed on PAGECCAHE_FILE. storage/maria/ma_loghandler.c: Assert added. storage/maria/ma_loghandler.h: extern specifier added. storage/maria/ma_open.c: Pagecache integration. File changed on PAGECCAHE_FILE. storage/maria/ma_packrec.c: File changed on PAGECCAHE_FILE. storage/maria/ma_page.c: Pagecache integration. storage/maria/ma_pagecache.c: Pagecache renamed and moved to the maria directory. BLOCK_* defines renamed to avoid conflict with BLOCK_ERROR defined in maria_def.h storage/maria/ma_panic.c: File changed on PAGECCAHE_FILE. storage/maria/ma_preload.c: Pagecache integration. File changed on PAGECCAHE_FILE. storage/maria/ma_static.c: Pagecache integration. storage/maria/ma_test1.c: Pagecache integration. storage/maria/ma_test2.c: Pagecache integration. storage/maria/ma_test3.c: Pagecache integration. storage/maria/ma_write.c: File changed on PAGECCAHE_FILE. storage/maria/maria_chk.c: Pagecache integration. File changed on PAGECCAHE_FILE. storage/maria/maria_def.h: Pagecache integration. File changed on PAGECCAHE_FILE. storage/maria/maria_ftdump.c: Pagecache integration. storage/maria/maria_pack.c: File changed on PAGECCAHE_FILE. storage/maria/unittest/Makefile.am: Pagecache moved to the maria directory. storage/maria/unittest/ma_pagecache_consist.c: fixed using uninitialized variable storage/maria/ma_pagecaches.c: New BitKeeper file ``storage/maria/ma_pagecaches.c'' mysys/my_safehash.h: New BitKeeper file ``mysys/my_safehash.h''
Diffstat (limited to 'storage/maria/ma_test3.c')
-rw-r--r--storage/maria/ma_test3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/storage/maria/ma_test3.c b/storage/maria/ma_test3.c
index f6ed248ce16..b784151ad3a 100644
--- a/storage/maria/ma_test3.c
+++ b/storage/maria/ma_test3.c
@@ -41,7 +41,7 @@
const char *filename= "test3";
-uint tests=10,forks=10,key_cacheing=0;
+uint tests=10,forks=10,pagecacheing=0;
static void get_options(int argc, char *argv[]);
void start_test(int id);
@@ -140,10 +140,10 @@ static void get_options(int argc, char **argv)
tests=atoi(++pos);
break;
case 'K': /* Use key cacheing */
- key_cacheing=1;
+ pagecacheing=1;
break;
case 'A': /* All flags */
- key_cacheing=1;
+ pagecacheing=1;
break;
case '?':
case 'I':
@@ -178,8 +178,8 @@ void start_test(int id)
fprintf(stderr,"Can't open isam-file: %s\n",filename);
exit(1);
}
- if (key_cacheing && rnd(2) == 0)
- init_key_cache(maria_key_cache, KEY_CACHE_BLOCK_SIZE, 65536L, 0, 0);
+ if (pagecacheing && rnd(2) == 0)
+ init_pagecache(maria_pagecache, 65536L, 0, 0, MARIA_KEY_BLOCK_LENGTH);
printf("Process %d, pid: %d\n",id,getpid()); fflush(stdout);
for (error=i=0 ; i < tests && !error; i++)