~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sync.cc

MergedĀ up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
#endif
58
58
#if defined(HAVE_FDATASYNC)
59
59
    res= fdatasync(fd);
60
 
#elif defined(HAVE_FSYNC)
 
60
#else
61
61
    res= fsync(fd);
62
 
#else
63
 
#error Cannot find a way to sync a file, durability in danger
64
 
    res= 0;                                     /* No sync (strange OS) */
65
62
#endif
66
63
  } while (res == -1 && errno == EINTR);
67
64