603
604
&& os_file_get_last_error(FALSE) != 100
607
"InnoDB: Error in creating"
608
" or opening %s\n", name);
607
drizzled::errmsg_printf(drizzled::error::ERROR,
608
"InnoDB: Error in creating or opening %s", name);
613
613
files[i] = os_file_create(innodb_file_log_key, name,
614
614
OS_FILE_OPEN, OS_FILE_AIO,
615
615
OS_LOG_FILE, &ret);
618
"InnoDB: Error in opening %s\n", name);
617
drizzled::errmsg_printf(drizzled::error::ERROR,
618
"InnoDB: Error in opening %s.", name);
620
620
return(DB_ERROR);
626
626
if (size != srv_calc_low32(srv_log_file_size)
627
627
|| size_high != srv_calc_high32(srv_log_file_size)) {
630
"InnoDB: Error: log file %s is"
631
" of different size %lu %lu bytes\n"
632
"InnoDB: than specified in the .cnf"
633
" file %lu %lu bytes!\n",
634
name, (ulong) size_high, (ulong) size,
635
(ulong) srv_calc_high32(srv_log_file_size),
636
(ulong) srv_calc_low32(srv_log_file_size));
629
drizzled::errmsg_printf(drizzled::error::ERROR,
630
"InnoDB: Error: log file %s is of different size %lu %lu bytes than specified in the .cnf"
631
" file %lu %lu bytes!",
632
name, (ulong) size_high, (ulong) size,
633
(ulong) srv_calc_high32(srv_log_file_size),
634
(ulong) srv_calc_low32(srv_log_file_size));
638
636
return(DB_ERROR);
641
639
*log_file_created = TRUE;
643
ut_print_timestamp(stderr);
646
" InnoDB: Log file %s did not exist:"
647
" new to be created\n",
641
drizzled::errmsg_printf(drizzled::error::INFO,
642
"InnoDB: Log file %s did not exist: new to be created",
649
644
if (log_file_has_been_opened) {
651
646
return(DB_ERROR);
654
fprintf(stderr, "InnoDB: Setting log file %s size to %lu MB\n",
655
name, (ulong) srv_log_file_size
656
>> (20 - UNIV_PAGE_SIZE_SHIFT));
649
drizzled::errmsg_printf(drizzled::error::INFO,
650
"InnoDB: Setting log file %s size to %lu MB",
651
name, (ulong) srv_log_file_size
652
>> (20 - UNIV_PAGE_SIZE_SHIFT));
659
"InnoDB: Database physically writes the file"
654
drizzled::errmsg_printf(drizzled::error::INFO,
655
"InnoDB: Database physically writes the file full: wait...\n");
662
657
ret = os_file_set_size(name, files[i],
663
658
srv_calc_low32(srv_log_file_size),
664
659
srv_calc_high32(srv_log_file_size));
667
"InnoDB: Error in creating %s:"
668
" probably out of disk space\n",
661
drizzled::errmsg_printf(drizzled::error::ERROR,
662
"InnoDB: Error in creating %s: probably out of disk space",
671
665
return(DB_ERROR);
743
737
char name[10000];
745
739
if (srv_n_data_files >= 1000) {
746
fprintf(stderr, "InnoDB: can only have < 1000 data files\n"
747
"InnoDB: you have defined %lu\n",
748
(ulong) srv_n_data_files);
740
drizzled::errmsg_printf(drizzled::error::ERROR,
741
"InnoDB: can only have < 1000 data files you have defined %lu",
742
(ulong) srv_n_data_files);
749
743
return(DB_ERROR);
826
819
/* We open the data file */
828
821
if (one_created) {
830
"InnoDB: Error: data files can only"
831
" be added at the end\n");
833
"InnoDB: of a tablespace, but"
834
" data file %s existed beforehand.\n",
822
drizzled::errmsg_printf(drizzled::error::ERROR,
823
"InnoDB: Error: data files can only be added at the end of a tablespace, but"
824
" data file %s existed beforehand.",
836
826
return(DB_ERROR);
882
872
&& srv_last_file_size_max
883
873
< rounded_size_pages)) {
886
"InnoDB: Error: auto-extending"
888
" of a different size\n"
889
"InnoDB: %lu pages (rounded"
890
" down to MB) than specified"
891
" in the .cnf file:\n"
892
"InnoDB: initial %lu pages,"
893
" max %lu (relevant if"
894
" non-zero) pages!\n",
896
(ulong) rounded_size_pages,
897
(ulong) srv_data_file_sizes[i],
899
srv_last_file_size_max);
875
drizzled::errmsg_printf(drizzled::error::ERROR,
876
"InnoDB: Error: auto-extending data file %s is of a different size. "
877
"%lu pages (rounded down to MB) than specified in the .cnf file: "
878
"initial %lu pages, max %lu (relevant if non-zero) pages!",
880
(ulong) rounded_size_pages,
881
(ulong) srv_data_file_sizes[i],
883
srv_last_file_size_max);
901
885
return(DB_ERROR);
907
891
if (rounded_size_pages != srv_data_file_sizes[i]) {
910
"InnoDB: Error: data file %s"
911
" is of a different size\n"
913
" (rounded down to MB)\n"
914
"InnoDB: than specified"
915
" in the .cnf file %lu pages!\n",
893
drizzled::errmsg_printf(drizzled::error::ERROR,
894
"InnoDB: Error: data file %s is of a different size. "
895
"%lu pages (rounded down to MB). "
896
"Than specified in the .cnf file %lu pages!",
917
898
(ulong) rounded_size_pages,
918
899
(ulong) srv_data_file_sizes[i]);
934
915
one_created = TRUE;
937
ut_print_timestamp(stderr);
939
" InnoDB: Data file %s did not"
940
" exist: new to be created\n",
918
drizzled::errmsg_printf(drizzled::error::INFO,
919
" InnoDB: Data file %s did not exist: new to be created",
944
"InnoDB: The first specified"
945
" data file %s did not exist:\n"
946
"InnoDB: a new database"
947
" to be created!\n", name);
922
drizzled::errmsg_printf(drizzled::error::INFO,
923
"InnoDB: The first specified data file %s did not exist. A new database to be created!", name);
948
924
*create_new_db = TRUE;
951
ut_print_timestamp(stderr);
953
" InnoDB: Setting file %s size to %lu MB\n",
955
(ulong) (srv_data_file_sizes[i]
956
>> (20 - UNIV_PAGE_SIZE_SHIFT)));
927
drizzled::errmsg_printf(drizzled::error::INFO,
928
" InnoDB: Setting file %s size to %lu MB",
929
name, (ulong) (srv_data_file_sizes[i]
930
>> (20 - UNIV_PAGE_SIZE_SHIFT)));
959
"InnoDB: Database physically writes the"
960
" file full: wait...\n");
932
drizzled::errmsg_printf(drizzled::error::INFO,
933
"InnoDB: Database physically writes the file full: wait...");
962
935
ret = os_file_set_size(
965
938
srv_calc_high32(srv_data_file_sizes[i]));
969
"InnoDB: Error in creating %s:"
970
" probably out of disk space\n", name);
941
drizzled::errmsg_printf(drizzled::error::ERROR,
942
"InnoDB: Error in creating %s: probably out of disk space", name);
972
944
return(DB_ERROR);
1044
1016
#endif /* HAVE_DARWIN_THREADS */
1046
1018
if (sizeof(ulint) != sizeof(void*)) {
1048
_("InnoDB: Error: size of InnoDB's ulint is %lu,"
1049
" but size of void* is %lu.\n"
1050
"InnoDB: The sizes should be the same"
1051
" so that on a 64-bit platform you can\n"
1052
"InnoDB: allocate more than 4 GB of memory."),
1019
drizzled::errmsg_printf(drizzled::error::WARN,
1020
_("InnoDB: Error: size of InnoDB's ulint is %lu, but size of void* is %lu. "
1021
"The sizes should be the same so that on a 64-bit platform you can. Allocate more than 4 GB of memory."),
1053
1022
(ulong)sizeof(ulint), (ulong)sizeof(void*));
1059
1028
innodb_file_per_table) until this function has returned. */
1060
1029
srv_file_per_table = FALSE;
1061
1030
#ifdef UNIV_DEBUG
1063
_("InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n"));
1031
drizzled::errmsg_printf(drizzled::error::INFO,
1032
_("InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n"));
1066
1035
#ifdef UNIV_IBUF_DEBUG
1036
drizzled::errmsg_printf(drizzled::error::INFO,
1068
1037
_("InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!\n"
1069
1038
# ifdef UNIV_IBUF_COUNT_DEBUG
1070
1039
"InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on !!!!!!!!!\n"
1076
1045
#ifdef UNIV_SYNC_DEBUG
1078
_("InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n"));
1046
drizzled::errmsg_printf(drizzled::error::INFO,
1047
_("InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n"));
1081
1050
#ifdef UNIV_SEARCH_DEBUG
1083
_("InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n"));
1051
drizzled::errmsg_printf(drizzled::error::INFO,
1052
_("InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n"));
1086
1055
#ifdef UNIV_LOG_LSN_DEBUG
1088
_("InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n"));
1056
drizzled::errmsg_printf(drizzled::error::INFO,
1057
_("InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n"));
1089
1058
#endif /* UNIV_LOG_LSN_DEBUG */
1090
1059
#ifdef UNIV_MEM_DEBUG
1092
_("InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n"));
1060
drizzled::errmsg_printf(drizzled::error::INFO,
1061
_("InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n"));
1095
if (UNIV_LIKELY(srv_use_sys_malloc)) {
1097
_("InnoDB: The InnoDB memory heap is disabled\n"));
1064
if (UNIV_LIKELY(srv_use_sys_malloc))
1066
drizzled::errmsg_printf(drizzled::error::ERROR, _("InnoDB: The InnoDB memory heap is disabled\n"));
1100
1069
fputs("InnoDB: " IB_ATOMICS_STARTUP_MSG
1114
1083
second time during the process lifetime. */
1116
1085
if (srv_start_has_been_called) {
1118
"InnoDB: Error: startup called second time"
1119
" during the process lifetime.\n"
1120
"InnoDB: In the MySQL Embedded Server Library"
1121
" you cannot call server_init()\n"
1122
"InnoDB: more than once during"
1123
" the process lifetime.\n");
1086
drizzled::errmsg_printf(drizzled::error::ERROR,
1087
"InnoDB: Error: startup called second time during the process lifetime.\n");
1126
1090
srv_start_has_been_called = TRUE;
1162
1126
#elif defined(LINUX_NATIVE_AIO)
1164
1128
if (srv_use_native_aio) {
1165
ut_print_timestamp(stderr);
1167
_(" InnoDB: Using Linux native AIO\n"));
1129
drizzled::errmsg_printf(drizzled::error::INFO,
1130
_("InnoDB: Using Linux native AIO"));
1170
1133
/* Currently native AIO is supported only on windows and linux
1209
1172
srv_win_file_flush_method = SRV_WIN_IO_UNBUFFERED;
1213
"InnoDB: Unrecognized value %s for"
1214
" innodb_flush_method\n",
1215
srv_file_flush_method_str);
1175
drizzled::errmsg_printf(drizzled::error::ERROR,
1176
"InnoDB: Unrecognized value %s for innodb_flush_method",
1177
srv_file_flush_method_str);
1216
1178
return(DB_ERROR);
1259
1221
fil_path_to_mysql_datadir, os_proc_get_number());
1260
1222
srv_monitor_file = fopen(srv_monitor_file_name, "w+");
1261
1223
if (!srv_monitor_file) {
1262
fprintf(stderr, "InnoDB: unable to create %s: %s\n",
1263
srv_monitor_file_name, strerror(errno));
1224
drizzled::errmsg_printf(drizzled::error::ERROR,
1225
"InnoDB: unable to create %s: %s\n", srv_monitor_file_name, strerror(errno));
1264
1226
return(DB_ERROR);
1314
1276
srv_max_n_open_files);
1316
1278
/* Print time to initialize the buffer pool */
1317
ut_print_timestamp(stderr);
1319
" InnoDB: Initializing buffer pool, size =");
1321
1280
if (srv_buf_pool_size >= 1024 * 1024 * 1024) {
1324
((double) srv_buf_pool_size) / (1024 * 1024 * 1024));
1281
drizzled::errmsg_printf(drizzled::error::INFO, "InnoDB: Initializing buffer pool, size = %.1fG",
1282
((double) srv_buf_pool_size) / (1024 * 1024 * 1024));
1328
((double) srv_buf_pool_size) / (1024 * 1024));
1284
drizzled::errmsg_printf(drizzled::error::INFO, "InnoDB: Initializing buffer pool, size = %.1fM",
1285
((double) srv_buf_pool_size) / (1024 * 1024));
1331
1288
err = buf_pool_init(srv_buf_pool_size, srv_buf_pool_instances);
1333
ut_print_timestamp(stderr);
1335
" InnoDB: Completed initialization of buffer pool\n");
1290
drizzled::errmsg_printf(drizzled::error::INFO, "InnoDB: Completed initialization of buffer pool");
1337
1292
if (err != DB_SUCCESS) {
1339
"InnoDB: Fatal error: cannot allocate the memory"
1340
" for the buffer pool\n");
1293
drizzled::errmsg_printf(drizzled::error::ERROR, "InnoDB: Fatal error: cannot allocate the memory for the buffer pool");
1345
1298
#ifdef UNIV_DEBUG
1349
1302
if (srv_buf_pool_size <= 5 * 1024 * 1024) {
1351
fprintf(stderr, "InnoDB: Warning: Small buffer pool size "
1352
"(%luM), the flst_validate() debug function "
1353
"can cause a deadlock if the buffer pool fills up.\n",
1354
srv_buf_pool_size / 1024 / 1024);
1304
drizzled::errmsg_printf(drizzled::error::WARN, "InnoDB: Warning: Small buffer pool size "
1305
"(%luM), the flst_validate() debug function "
1306
"can cause a deadlock if the buffer pool fills up.\n",
1307
srv_buf_pool_size / 1024 / 1024);
1371
1324
#ifdef UNIV_LOG_ARCHIVE
1372
1325
if (0 != ut_strcmp(srv_log_group_home_dirs[0], srv_arch_dir)) {
1374
"InnoDB: Error: you must set the log group"
1375
" home dir in my.cnf the\n"
1376
"InnoDB: same as log arch dir.\n");
1326
drizzled::errmsg_printf(drizzled::error::ERROR,
1327
"InnoDB: Error: you must set the log group home dir in my.cnf the same as log arch dir.");
1378
1329
return(DB_ERROR);
1380
1331
#endif /* UNIV_LOG_ARCHIVE */
1382
1333
if (srv_n_log_files * srv_log_file_size >= 262144) {
1384
"InnoDB: Error: combined size of log files"
1385
" must be < 4 GB\n");
1334
drizzled::errmsg_printf(drizzled::error::ERROR,
1335
"InnoDB: Error: combined size of log files must be < 4 GB");
1387
1337
return(DB_ERROR);
1392
1342
for (i = 0; i < srv_n_data_files; i++) {
1393
1343
#ifndef __WIN__
1394
1344
if (sizeof(off_t) < 5 && srv_data_file_sizes[i] >= 262144) {
1396
"InnoDB: Error: file size must be < 4 GB"
1397
" with this MySQL binary\n"
1398
"InnoDB: and operating system combination,"
1399
" in some OS's < 2 GB\n");
1345
drizzled::errmsg_printf(drizzled::error::ERROR,
1346
"InnoDB: Error: file size must be < 4 GB with this MySQL binary and operating system combination,"
1347
" in some OS's < 2 GB\n");
1401
1349
return(DB_ERROR);
1419
1365
&min_flushed_lsn, &max_flushed_lsn,
1420
1366
&sum_of_new_sizes);
1421
1367
if (err != DB_SUCCESS) {
1423
"InnoDB: Could not open or create data files.\n"
1424
"InnoDB: If you tried to add new data files,"
1425
" and it failed here,\n"
1426
"InnoDB: you should now edit innodb_data_file_path"
1428
"InnoDB: to what it was, and remove the"
1429
" new ibdata files InnoDB created\n"
1430
"InnoDB: in this failed attempt. InnoDB only wrote"
1431
" those files full of\n"
1432
"InnoDB: zeros, but did not yet use them in any way."
1433
" But be careful: do not\n"
1434
"InnoDB: remove old data files"
1435
" which contain your precious data!\n");
1368
drizzled::errmsg_printf(drizzled::error::ERROR,
1369
"InnoDB: Could not open or create data files.\n"
1370
"InnoDB: If you tried to add new data files, and it failed here,\n"
1371
"InnoDB: you should now edit innodb_data_file_path in my.cnf back\n"
1372
"InnoDB: to what it was, and remove the new ibdata files InnoDB created\n"
1373
"InnoDB: in this failed attempt. InnoDB only wrote those files full of\n"
1374
"InnoDB: zeros, but did not yet use them in any way. But be careful: do not\n"
1375
"InnoDB: remove old data files which contain your precious data!\n");
1437
1377
return((int) err);
1458
1398
if ((log_opened && create_new_db)
1459
1399
|| (log_opened && log_created)) {
1461
"InnoDB: Error: all log files must be"
1462
" created at the same time.\n"
1463
"InnoDB: All log files must be"
1464
" created also in database creation.\n"
1465
"InnoDB: If you want bigger or smaller"
1466
" log files, shut down the\n"
1467
"InnoDB: database and make sure there"
1468
" were no errors in shutdown.\n"
1469
"InnoDB: Then delete the existing log files."
1470
" Edit the .cnf file\n"
1400
drizzled::errmsg_printf(drizzled::error::ERROR,
1401
"InnoDB: Error: all log files must be created at the same time.\n"
1402
"InnoDB: All log files must be created also in database creation.\n"
1403
"InnoDB: If you want bigger or smaller log files, shut down the\n"
1404
"InnoDB: database and make sure there were no errors in shutdown.\n"
1405
"InnoDB: Then delete the existing log files. Edit the .cnf file\n"
1471
1406
"InnoDB: and start the database again.\n");
1473
1408
return(DB_ERROR);
1489
1424
|| max_arch_log_no != min_arch_log_no
1490
1425
#endif /* UNIV_LOG_ARCHIVE */
1493
"InnoDB: Cannot initialize created"
1494
" log files because\n"
1495
"InnoDB: data files were not in sync"
1496
" with each other\n"
1427
drizzled::errmsg_printf(drizzled::error::ERROR,
1428
"InnoDB: Cannot initialize created log files because\n"
1429
"InnoDB: data files were not in sync with each other\n"
1497
1430
"InnoDB: or the data files are corrupt.\n");
1499
1432
return(DB_ERROR);
1502
1435
if (max_flushed_lsn < (ib_uint64_t) 1000) {
1504
"InnoDB: Cannot initialize created"
1505
" log files because\n"
1506
"InnoDB: data files are corrupt,"
1507
" or new data files were\n"
1508
"InnoDB: created when the database"
1509
" was started previous\n"
1510
"InnoDB: time but the database"
1511
" was not shut down\n"
1512
"InnoDB: normally after that.\n");
1436
drizzled::errmsg_printf(drizzled::error::ERROR,
1437
"InnoDB: Cannot initialize created log files because\n"
1438
"InnoDB: data files are corrupt, or new data files were\n"
1439
"InnoDB: created when the database was started previous\n"
1440
"InnoDB: time but the database was not shut down\n"
1441
"InnoDB: normally after that.\n");
1514
1443
return(DB_ERROR);
1549
1478
#ifdef UNIV_LOG_ARCHIVE
1550
1479
} else if (srv_archive_recovery) {
1552
"InnoDB: Starting archive"
1553
" recovery from a backup...\n");
1480
drizzled::errmsg_printf(drizzled::error::INFO,
1481
"InnoDB: Starting archive recovery from a backup...");
1554
1482
err = recv_recovery_from_archive_start(
1555
1483
min_flushed_lsn, srv_archive_recovery_limit_lsn,
1556
1484
min_arch_log_no);
1771
1699
if (!srv_auto_extend_last_data_file
1772
1700
&& sum_of_data_file_sizes != tablespace_size_in_header) {
1775
"InnoDB: Error: tablespace size"
1776
" stored in header is %lu pages, but\n"
1777
"InnoDB: the sum of data file sizes is %lu pages\n",
1778
(ulong) tablespace_size_in_header,
1779
(ulong) sum_of_data_file_sizes);
1702
drizzled::errmsg_printf(drizzled::error::ERROR,
1703
"InnoDB: Error: tablespace size stored in header is %lu pages, but the sum of data file sizes is %lu pages.",
1704
(ulong) tablespace_size_in_header,
1705
(ulong) sum_of_data_file_sizes);
1781
1707
if (srv_force_recovery == 0
1782
1708
&& sum_of_data_file_sizes < tablespace_size_in_header) {
1783
1709
/* This is a fatal error, the tail of a tablespace is
1787
"InnoDB: Cannot start InnoDB."
1788
" The tail of the system tablespace is\n"
1789
"InnoDB: missing. Have you edited"
1790
" innodb_data_file_path in my.cnf in an\n"
1791
"InnoDB: inappropriate way, removing"
1792
" ibdata files from there?\n"
1793
"InnoDB: You can set innodb_force_recovery=1"
1794
" in my.cnf to force\n"
1795
"InnoDB: a startup if you are trying"
1796
" to recover a badly corrupt database.\n");
1712
drizzled::errmsg_printf(drizzled::error::ERROR,
1713
"InnoDB: Cannot start InnoDB. The tail of the system tablespace is "
1714
"missing. Have you edited innodb_data_file_path in my.cnf in an "
1715
"inappropriate way, removing ibdata files from there? "
1716
"You can set innodb_force_recovery=1 in my.cnf to force "
1717
"a startup if you are trying to recover a badly corrupt database.");
1798
1719
return(DB_ERROR);
1802
1723
if (srv_auto_extend_last_data_file
1803
1724
&& sum_of_data_file_sizes < tablespace_size_in_header) {
1806
"InnoDB: Error: tablespace size stored in header"
1807
" is %lu pages, but\n"
1808
"InnoDB: the sum of data file sizes"
1809
" is only %lu pages\n",
1810
(ulong) tablespace_size_in_header,
1811
(ulong) sum_of_data_file_sizes);
1726
drizzled::errmsg_printf(drizzled::error::ERROR,
1727
"InnoDB: Error: tablespace size stored in header is %lu pages, but the sum of data file sizes"
1728
" is only %lu pages\n",
1729
(ulong) tablespace_size_in_header,
1730
(ulong) sum_of_data_file_sizes);
1813
1732
if (srv_force_recovery == 0) {
1816
"InnoDB: Cannot start InnoDB. The tail of"
1817
" the system tablespace is\n"
1818
"InnoDB: missing. Have you edited"
1819
" innodb_data_file_path in my.cnf in an\n"
1820
"InnoDB: inappropriate way, removing"
1821
" ibdata files from there?\n"
1822
"InnoDB: You can set innodb_force_recovery=1"
1823
" in my.cnf to force\n"
1824
"InnoDB: a startup if you are trying to"
1825
" recover a badly corrupt database.\n");
1734
drizzled::errmsg_printf(drizzled::error::ERROR,
1735
"InnoDB: Cannot start InnoDB. The tail of the system tablespace is "
1736
"missing. Have you edited innodb_data_file_path in my.cnf in an "
1737
"inappropriate way, removing ibdata files from there? "
1738
"You can set innodb_force_recovery=1 in my.cnf to force "
1739
"a startup if you are trying to recover a badly corrupt database.\n");
1827
1741
return(DB_ERROR);
1832
1746
os_fast_mutex_init(&srv_os_test_mutex);
1834
1748
if (0 != os_fast_mutex_trylock(&srv_os_test_mutex)) {
1836
"InnoDB: Error: pthread_mutex_trylock returns"
1837
" an unexpected value on\n"
1838
"InnoDB: success! Cannot continue.\n");
1749
drizzled::errmsg_printf(drizzled::error::ERROR,
1750
"InnoDB: Error: pthread_mutex_trylock returns an unexpected value on success! Cannot continue.\n");
1848
1760
os_fast_mutex_free(&srv_os_test_mutex);
1850
1762
if (srv_print_verbose_log) {
1851
ut_print_timestamp(stderr);
1853
" InnoDB %s started; "
1854
"log sequence number %"PRIu64"\n",
1855
INNODB_VERSION_STR, srv_start_lsn);
1763
drizzled::errmsg_printf(drizzled::error::ERROR,
1764
"InnoDB %s started; log sequence number %"PRIu64"\n",
1765
INNODB_VERSION_STR, srv_start_lsn);
1858
1768
if (srv_force_recovery > 0) {
1860
"InnoDB: !!! innodb_force_recovery"
1861
" is set to %lu !!!\n",
1862
(ulong) srv_force_recovery);
1769
drizzled::errmsg_printf(drizzled::error::ERROR,
1770
"InnoDB: !!! innodb_force_recovery is set to %lu !!!\n",
1771
(ulong) srv_force_recovery);
1867
1774
if (trx_doublewrite_must_reset_space_ids) {
1868
1775
/* Actually, we did not change the undo log format between
1869
1776
4.0 and 4.1.1, and we would not need to run purge to
1878
1785
4.1.1. It is essential that the insert buffer is emptied
1882
"InnoDB: You are upgrading to an"
1883
" InnoDB version which allows multiple\n"
1884
"InnoDB: tablespaces. Wait that purge"
1885
" and insert buffer merge run to\n"
1886
"InnoDB: completion...\n");
1788
drizzled::errmsg_printf(drizzled::error::INFO,
1789
"InnoDB: You are upgrading to an InnoDB version which allows multiple. "
1790
"tablespaces. Wait that purge and insert buffer merge run to completion...");
1888
1792
os_thread_sleep(1000000);
1899
"InnoDB: Full purge and insert buffer merge"
1802
drizzled::errmsg_printf(drizzled::error::INFO,
1803
"InnoDB: Full purge and insert buffer merge completed.");
1902
1805
trx_sys_mark_upgraded_to_multiple_tablespaces();
1905
"InnoDB: You have now successfully upgraded"
1906
" to the multiple tablespaces\n"
1907
"InnoDB: format. You should NOT DOWNGRADE"
1908
" to an earlier version of\n"
1909
"InnoDB: InnoDB! But if you absolutely need to"
1911
"InnoDB: " REFMAN "multiple-tablespaces.html\n"
1912
"InnoDB: for instructions.\n");
1807
drizzled::errmsg_printf(drizzled::error::INFO,
1808
"InnoDB: You have now successfully upgraded"
1809
" to the multiple tablespaces\n"
1810
"InnoDB: format. You should NOT DOWNGRADE"
1811
" to an earlier version of\n"
1812
"InnoDB: InnoDB! But if you absolutely need to"
1814
"InnoDB: " REFMAN "multiple-tablespaces.html\n"
1815
"InnoDB: for instructions.\n");
1915
1818
if (srv_force_recovery == 0) {
1940
1843
if (!srv_was_started) {
1941
1844
if (srv_is_being_started) {
1942
ut_print_timestamp(stderr);
1944
" InnoDB: Warning: shutting down"
1945
" a not properly started\n"
1946
"InnoDB: or created database!\n");
1845
drizzled::errmsg_printf(drizzled::error::ERROR,
1846
"InnoDB: Warning: shutting down a not properly started or created database!");
1949
1849
return(DB_SUCCESS);
1958
1858
if (srv_fast_shutdown == 2) {
1959
ut_print_timestamp(stderr);
1961
" InnoDB: MySQL has requested a very fast shutdown"
1962
" without flushing "
1963
"the InnoDB buffer pool to data files."
1964
" At the next mysqld startup "
1965
"InnoDB will do a crash recovery!\n");
1859
drizzled::errmsg_printf(drizzled::error::INFO,
1860
"InnoDB: MySQL has requested a very fast shutdown without flushing "
1861
"the InnoDB buffer pool to data files. At the next mysqld startup "
1862
"InnoDB will do a crash recovery!");
1968
1865
logs_empty_and_mark_files_at_shutdown();
1970
1867
if (srv_conc_n_threads != 0) {
1972
"InnoDB: Warning: query counter shows %ld queries"
1974
"InnoDB: inside InnoDB at shutdown\n",
1975
srv_conc_n_threads);
1868
drizzled::errmsg_printf(drizzled::error::WARN,
1869
"InnoDB: Warning: query counter shows %ld queries still InnoDB: inside InnoDB at shutdown.",
1870
srv_conc_n_threads);
1978
1873
/* 2. Make all threads created by InnoDB to exit */
2037
1932
if (i == 1000) {
2039
"InnoDB: Warning: %lu threads created by InnoDB"
2040
" had not exited at shutdown!\n",
1933
drizzled::errmsg_printf(drizzled::error::WARN,
1934
"InnoDB: Warning: %lu threads created by InnoDB had not exited at shutdown!",
2041
1935
(ulong) os_thread_count);
2103
1997
|| os_event_count != 0
2104
1998
|| os_mutex_count != 0
2105
1999
|| os_fast_mutex_count != 0) {
2107
"InnoDB: Warning: some resources were not"
2108
" cleaned up in shutdown:\n"
2109
"InnoDB: threads %lu, events %lu,"
2110
" os_mutexes %lu, os_fast_mutexes %lu\n",
2111
(ulong) os_thread_count, (ulong) os_event_count,
2112
(ulong) os_mutex_count, (ulong) os_fast_mutex_count);
2000
drizzled::errmsg_printf(drizzled::error::WARN,
2001
"InnoDB: Warning: some resources were not cleaned up in shutdown:\n"
2002
"InnoDB: threads %lu, events %lu, os_mutexes %lu, os_fast_mutexes %lu\n",
2003
(ulong) os_thread_count, (ulong) os_event_count,
2004
(ulong) os_mutex_count, (ulong) os_fast_mutex_count);
2115
2007
if (dict_foreign_err_file) {
2122
2014
if (srv_print_verbose_log) {
2123
ut_print_timestamp(stderr);
2125
" InnoDB: Shutdown completed;"
2126
" log sequence number %"PRIu64"\n",
2015
drizzled::errmsg_printf(drizzled::error::INFO,
2016
"InnoDB: Shutdown completed log sequence number %"PRIu64,
2130
2020
srv_was_started = FALSE;