1025
1027
on Mac OS X 10.3 or later. */
1026
1028
struct utsname utsname;
1027
1029
if (uname(&utsname)) {
1028
fputs("InnoDB: cannot determine Mac OS X version!\n", stderr);
1030
fputs(_("InnoDB: cannot determine Mac OS X version!\n"), stderr);
1030
1032
srv_have_fullfsync = strcmp(utsname.release, "7.") >= 0;
1032
1034
if (!srv_have_fullfsync) {
1033
fputs("InnoDB: On Mac OS X, fsync() may be"
1034
" broken on internal drives,\n"
1035
"InnoDB: making transactions unsafe!\n", stderr);
1035
fputs(_("InnoDB: On Mac OS X, fsync() may be"
1036
" broken on internal drives,\n"
1037
"InnoDB: making transactions unsafe!\n"), stderr);
1037
1039
# endif /* F_FULLFSYNC */
1038
1040
#endif /* HAVE_DARWIN_THREADS */
1040
1042
if (sizeof(ulint) != sizeof(void*)) {
1041
1043
fprintf(stderr,
1042
"InnoDB: Error: size of InnoDB's ulint is %lu,"
1043
" but size of void* is %lu.\n"
1044
"InnoDB: The sizes should be the same"
1045
" so that on a 64-bit platform you can\n"
1046
"InnoDB: allocate more than 4 GB of memory.",
1044
_("InnoDB: Error: size of InnoDB's ulint is %lu,"
1045
" but size of void* is %lu.\n"
1046
"InnoDB: The sizes should be the same"
1047
" so that on a 64-bit platform you can\n"
1048
"InnoDB: allocate more than 4 GB of memory."),
1047
1049
(ulong)sizeof(ulint), (ulong)sizeof(void*));
1054
1056
srv_file_per_table = FALSE;
1055
1057
#ifdef UNIV_DEBUG
1056
1058
fprintf(stderr,
1057
"InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n");
1059
_("InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n"));
1060
1062
#ifdef UNIV_IBUF_DEBUG
1061
1063
fprintf(stderr,
1062
"InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!\n"
1064
_("InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!\n"
1063
1065
# ifdef UNIV_IBUF_COUNT_DEBUG
1064
"InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on !!!!!!!!!\n"
1065
"InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG\n"
1066
"InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on !!!!!!!!!\n"
1067
"InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG\n"
1070
1072
#ifdef UNIV_SYNC_DEBUG
1071
1073
fprintf(stderr,
1072
"InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n");
1074
_("InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n"));
1075
1077
#ifdef UNIV_SEARCH_DEBUG
1076
1078
fprintf(stderr,
1077
"InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n");
1079
_("InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n"));
1080
1082
#ifdef UNIV_LOG_LSN_DEBUG
1081
1083
fprintf(stderr,
1082
"InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n");
1084
_("InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n"));
1083
1085
#endif /* UNIV_LOG_LSN_DEBUG */
1084
1086
#ifdef UNIV_MEM_DEBUG
1085
1087
fprintf(stderr,
1086
"InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n");
1088
_("InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n"));
1089
1091
if (UNIV_LIKELY(srv_use_sys_malloc)) {
1090
1092
fprintf(stderr,
1091
"InnoDB: The InnoDB memory heap is disabled\n");
1093
_("InnoDB: The InnoDB memory heap is disabled\n"));
1094
1096
fputs("InnoDB: " IB_ATOMICS_STARTUP_MSG
1095
"\nInnoDB: Compressed tables use zlib " ZLIB_VERSION
1097
"\nInnoDB: Compressed tables use zlib " ZLIB_VERSION
1096
1098
#ifdef UNIV_ZIP_DEBUG
1097
1099
" with validation"
1098
1100
#endif /* UNIV_ZIP_DEBUG */
1158
1160
if (srv_use_native_aio) {
1159
1161
ut_print_timestamp(stderr);
1160
1162
fprintf(stderr,
1161
" InnoDB: Using Linux native AIO\n");
1163
_(" InnoDB: Using Linux native AIO\n"));
1164
1166
/* Currently native AIO is supported only on windows and linux