~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log.cc

  • Committer: mordred
  • Date: 2008-11-03 19:16:14 UTC
  • mto: (575.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 575.
  • Revision ID: mordred@opensolaris-20081103191614-baivj0p2wjudgaj2
zomg. Solaris actually builds all the way!!!

Show diffs side-by-side

added added

removed removed

Lines of Context:
3406
3406
 
3407
3407
  memcpy(data, tc_log_magic, sizeof(tc_log_magic));
3408
3408
  data[sizeof(tc_log_magic)]= (unsigned char)total_ha_2pc;
3409
 
  msync(data, tc_log_page_size, MS_SYNC);
 
3409
  // must cast data to (char *) for solaris. Arg1 is (void *) on linux
 
3410
  //   so the cast should be fine. 
 
3411
  msync((char *)data, tc_log_page_size, MS_SYNC);
3410
3412
  my_sync(fd, MYF(0));
3411
3413
  inited=5;
3412
3414
 
3612
3614
    sit down and relax - this can take a while...
3613
3615
    note - no locks are held at this point
3614
3616
  */
3615
 
  err= msync(syncing->start, 1, MS_SYNC);
 
3617
  // must cast data to (char *) for solaris. Arg1 is (void *) on linux
 
3618
  //   so the cast should be fine. 
 
3619
  err= msync((char *)syncing->start, 1, MS_SYNC);
3616
3620
  if(err==0)
3617
3621
    err= my_sync(fd, MYF(0));
3618
3622