~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to myisam/mi_test3.c

  • Committer: monty at mysql
  • Date: 2002-07-23 15:31:22 UTC
  • mto: (1110.1.7)
  • mto: This revision was merged to the branch mainline in revision 1116.
  • Revision ID: sp1r-monty@mashka.mysql.fi-20020723153122-09736
New SET syntax & system variables.
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
    exit(1);
174
174
  }
175
175
  if (key_cacheing && rnd(2) == 0)
176
 
    init_key_cache(65536L,(uint) IO_SIZE*4*10);
 
176
    init_key_cache(65536L);
177
177
  printf("Process %d, pid: %d\n",id,getpid()); fflush(stdout);
178
178
 
179
179
  for (error=i=0 ; i < tests && !error; i++)
302
302
      return 1;
303
303
    }
304
304
    if (rnd(2) == 0)
305
 
      mi_extra(file,HA_EXTRA_CACHE);
 
305
      mi_extra(file,HA_EXTRA_CACHE,0);
306
306
  }
307
307
 
308
308
  count=0;
323
323
end:
324
324
  if (lock)
325
325
  {
326
 
    mi_extra(file,HA_EXTRA_NO_CACHE);
 
326
    mi_extra(file,HA_EXTRA_NO_CACHE,0);
327
327
    if (mi_lock_database(file,F_UNLCK))
328
328
    {
329
329
      fprintf(stderr,"%2d: Can't unlock table\n",id);
355
355
      return 1;
356
356
    }
357
357
    if (rnd(2) == 0)
358
 
      mi_extra(file,HA_EXTRA_WRITE_CACHE);
 
358
      mi_extra(file,HA_EXTRA_WRITE_CACHE,0);
359
359
  }
360
360
 
361
361
  sprintf(record.id,"%7d",getpid());
380
380
  }
381
381
  if (lock)
382
382
  {
383
 
    mi_extra(file,HA_EXTRA_NO_CACHE);
 
383
    mi_extra(file,HA_EXTRA_NO_CACHE,0);
384
384
    if (mi_lock_database(file,F_UNLCK))
385
385
    {
386
386
      fprintf(stderr,"%2d: Can't unlock table\n",id);