~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_iocache.cc

  • Committer: Brian Aker
  • Date: 2009-05-05 00:40:45 UTC
  • mfrom: (1003.2.7 mordred)
  • Revision ID: brian@gaz-20090505004045-yns4biv63thufj1b
Tags: 2009.05.1005
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  write buffer to the read buffer before we start to reuse it.
48
48
*/
49
49
 
50
 
#include "mysys_priv.h"
 
50
#include "mysys/mysys_priv.h"
51
51
#include <mystrings/m_string.h>
52
52
#ifdef HAVE_AIOWAIT
53
 
#include "mysys_err.h"
 
53
#include "mysys/mysys_err.h"
54
54
#include <mysys/aio_result.h>
55
55
static void my_aiowait(my_aio_result *result);
56
56
#endif
248
248
    info->write_end = info->write_buffer + info->buffer_length;
249
249
    pthread_mutex_init(&info->append_buffer_lock,MY_MUTEX_INIT_FAST);
250
250
  }
251
 
#if defined(SAFE_MUTEX)
252
 
  else
253
 
  {
254
 
    /* Clear mutex so that safe_mutex will notice that it's not initialized */
255
 
    memset(&info->append_buffer_lock, 0, sizeof(info));
256
 
  }
257
 
#endif
258
251
 
259
252
  if (type == WRITE_CACHE)
260
253
    info->write_end=