~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/srv/srv0start.c

  • Committer: Lee Bieber
  • Date: 2010-12-26 20:35:04 UTC
  • mfrom: (2034.1.2 build)
  • Revision ID: kalebral@gmail.com-20101226203504-fso38xjh0ngh86bk
Merge Monty - Adds an option for native-aio and turns it on by default if it exists.
Merge Kent - Updated the Data Types documentation on columntypes.rst.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
#include <errno.h>
93
93
#include <unistd.h>
94
94
 
 
95
#include <drizzled/gettext.h> 
 
96
 
95
97
/** Log sequence number immediately after startup */
96
98
UNIV_INTERN ib_uint64_t srv_start_lsn;
97
99
/** Log sequence number at shutdown */
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);
1029
1031
        } else {
1030
1032
                srv_have_fullfsync = strcmp(utsname.release, "7.") >= 0;
1031
1033
        }
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);
1036
1038
        }
1037
1039
# endif /* F_FULLFSYNC */
1038
1040
#endif /* HAVE_DARWIN_THREADS */
1039
1041
 
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*));
1048
1050
        }
1049
1051
 
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"));
1058
1060
#endif
1059
1061
 
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"
1066
1068
# endif
1067
 
                );
 
1069
                ));
1068
1070
#endif
1069
1071
 
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"));
1073
1075
#endif
1074
1076
 
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"));
1078
1080
#endif
1079
1081
 
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"));
1087
1089
#endif
1088
1090
 
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"));
1092
1094
        }
1093
1095
 
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"));
1162
1164
        }
1163
1165
#else
1164
1166
        /* Currently native AIO is supported only on windows and linux