~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mf_keycache.c

  • Committer: Monty Taylor
  • Date: 2008-07-30 19:17:49 UTC
  • mto: (236.1.7 codestyle)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: monty@inaugust.com-20080730191749-xfjicbhw2qna3hs2
Removed excess AM_CPPFLAGS from the tree. Now the only thing that should be in the include path should be -I${top_srcdir} and -I${top_builddir}w

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
  I/O finished.
102
102
*/
103
103
 
104
 
#include "my_global.h"
105
 
#include "mysys_err.h"
106
 
#include <my_sys.h>
 
104
#include <drizzled/global.h>
 
105
#include <mysys/mysys_err.h>
 
106
#include <mysys/my_sys.h>
107
107
#include <keycache.h>
108
 
#include <m_string.h>
109
 
#include <my_bit.h>
 
108
#include <mystrings/m_string.h>
 
109
#include <mysys/my_bit.h>
110
110
#include <errno.h>
111
111
#include <stdarg.h>
112
112
 
238
238
 
239
239
static inline uint next_power(uint value)
240
240
{
241
 
  return (uint) my_round_up_to_next_power((uint32) value) << 1;
 
241
  return (uint) my_round_up_to_next_power((uint32_t) value) << 1;
242
242
}
243
243
 
244
244
 
353
353
    keycache->hash_link_root= (HASH_LINK*) ((char*) keycache->hash_root +
354
354
                                            ALIGN_SIZE((sizeof(HASH_LINK*) *
355
355
                                                        keycache->hash_entries)));
356
 
    bzero((uchar*) keycache->block_root,
357
 
          keycache->disk_blocks * sizeof(BLOCK_LINK));
358
 
    bzero((uchar*) keycache->hash_root,
359
 
          keycache->hash_entries * sizeof(HASH_LINK*));
360
 
    bzero((uchar*) keycache->hash_link_root,
361
 
          keycache->hash_links * sizeof(HASH_LINK));
 
356
    memset((uchar*) keycache->block_root, 0,
 
357
           keycache->disk_blocks * sizeof(BLOCK_LINK));
 
358
    memset((uchar*) keycache->hash_root, 0,
 
359
           keycache->hash_entries * sizeof(HASH_LINK*));
 
360
    memset((uchar*) keycache->hash_link_root, 0,
 
361
           keycache->hash_links * sizeof(HASH_LINK));
362
362
    keycache->hash_links_used= 0;
363
363
    keycache->free_hash_list= NULL;
364
364
    keycache->blocks_used= keycache->blocks_changed= 0;
383
383
 
384
384
    keycache->waiting_for_hash_link.last_thread= NULL;
385
385
    keycache->waiting_for_block.last_thread= NULL;
386
 
    bzero((uchar*) keycache->changed_blocks,
387
 
          sizeof(keycache->changed_blocks[0]) * CHANGED_BLOCKS_HASH);
388
 
    bzero((uchar*) keycache->file_blocks,
389
 
          sizeof(keycache->file_blocks[0]) * CHANGED_BLOCKS_HASH);
 
386
    memset((uchar*) keycache->changed_blocks, 0,
 
387
           sizeof(keycache->changed_blocks[0]) * CHANGED_BLOCKS_HASH);
 
388
    memset((uchar*) keycache->file_blocks, 0,
 
389
           sizeof(keycache->file_blocks[0]) * CHANGED_BLOCKS_HASH);
390
390
  }
391
391
  else
392
392
  {