|
|
|
@ -1324,18 +1324,14 @@ row_insert_for_mysql( |
|
|
|
mem_analyze_corruption(prebuilt); |
|
|
|
|
|
|
|
ut_error; |
|
|
|
} else if (srv_created_new_raw || srv_force_recovery) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized or\n" |
|
|
|
"InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
} else if (srv_force_recovery) { |
|
|
|
fputs("InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
"InnoDB: database modifications by the user. Shut down\n" |
|
|
|
"InnoDB: mysqld and edit my.cnf so that" |
|
|
|
" newraw is replaced\n" |
|
|
|
"InnoDB: with raw, and innodb_force_... is removed.\n", |
|
|
|
"InnoDB: innodb_force_... is removed.\n", |
|
|
|
stderr); |
|
|
|
if(srv_force_recovery) { |
|
|
|
return(DB_READ_ONLY); |
|
|
|
} |
|
|
|
return(DB_ERROR); |
|
|
|
|
|
|
|
return(DB_READ_ONLY); |
|
|
|
} |
|
|
|
|
|
|
|
trx->op_info = "inserting"; |
|
|
|
@ -1730,18 +1726,14 @@ row_update_for_mysql( |
|
|
|
ut_error; |
|
|
|
} |
|
|
|
|
|
|
|
if (UNIV_UNLIKELY(srv_created_new_raw || srv_force_recovery)) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized or\n" |
|
|
|
"InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
if (UNIV_UNLIKELY(srv_force_recovery)) { |
|
|
|
fputs("InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
"InnoDB: database modifications by the user. Shut down\n" |
|
|
|
"InnoDB: mysqld and edit my.cnf so that newraw" |
|
|
|
" is replaced\n" |
|
|
|
"InnoDB: with raw, and innodb_force_... is removed.\n", |
|
|
|
"InnoDB: mysqld and edit my.cnf so that" |
|
|
|
"InnoDB: innodb_force_... is removed.\n", |
|
|
|
stderr); |
|
|
|
if(srv_force_recovery) { |
|
|
|
return(DB_READ_ONLY); |
|
|
|
} |
|
|
|
return(DB_ERROR); |
|
|
|
|
|
|
|
return(DB_READ_ONLY); |
|
|
|
} |
|
|
|
|
|
|
|
DEBUG_SYNC_C("innodb_row_update_for_mysql_begin"); |
|
|
|
@ -2250,22 +2242,6 @@ row_create_table_for_mysql( |
|
|
|
goto err_exit; |
|
|
|
); |
|
|
|
|
|
|
|
if (srv_created_new_raw) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized:\n" |
|
|
|
"InnoDB: we do not allow database modifications" |
|
|
|
" by the user.\n" |
|
|
|
"InnoDB: Shut down mysqld and edit my.cnf so that newraw" |
|
|
|
" is replaced with raw.\n", stderr); |
|
|
|
err_exit: |
|
|
|
dict_mem_table_free(table); |
|
|
|
|
|
|
|
if (commit) { |
|
|
|
trx_commit_for_mysql(trx); |
|
|
|
} |
|
|
|
|
|
|
|
return(DB_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
trx->op_info = "creating table"; |
|
|
|
|
|
|
|
if (row_mysql_is_system_table(table->name)) { |
|
|
|
@ -2276,7 +2252,17 @@ err_exit: |
|
|
|
"InnoDB: MySQL system tables must be" |
|
|
|
" of the MyISAM type!\n", |
|
|
|
table->name); |
|
|
|
goto err_exit; |
|
|
|
|
|
|
|
err_exit: |
|
|
|
dict_mem_table_free(table); |
|
|
|
|
|
|
|
if (commit) { |
|
|
|
trx_commit_for_mysql(trx); |
|
|
|
} |
|
|
|
|
|
|
|
trx->op_info = ""; |
|
|
|
|
|
|
|
return(DB_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
trx_start_if_not_started_xa(trx); |
|
|
|
@ -3326,16 +3312,6 @@ row_truncate_table_for_mysql( |
|
|
|
|
|
|
|
ut_ad(table); |
|
|
|
|
|
|
|
if (srv_created_new_raw) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized:\n" |
|
|
|
"InnoDB: we do not allow database modifications" |
|
|
|
" by the user.\n" |
|
|
|
"InnoDB: Shut down mysqld and edit my.cnf so that newraw" |
|
|
|
" is replaced with raw.\n", stderr); |
|
|
|
|
|
|
|
return(DB_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
if (dict_table_is_discarded(table)) { |
|
|
|
return(DB_TABLESPACE_DELETED); |
|
|
|
} else if (table->ibd_file_missing) { |
|
|
|
@ -3815,16 +3791,6 @@ row_drop_table_for_mysql( |
|
|
|
|
|
|
|
ut_a(name != NULL); |
|
|
|
|
|
|
|
if (srv_created_new_raw) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized:\n" |
|
|
|
"InnoDB: we do not allow database modifications" |
|
|
|
" by the user.\n" |
|
|
|
"InnoDB: Shut down mysqld and edit my.cnf so that newraw" |
|
|
|
" is replaced with raw.\n", stderr); |
|
|
|
|
|
|
|
DBUG_RETURN(DB_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
/* The table name is prefixed with the database name and a '/'.
|
|
|
|
Certain table names starting with 'innodb_' have their special |
|
|
|
meaning regardless of the database name. Thus, we need to |
|
|
|
@ -4838,19 +4804,16 @@ row_rename_table_for_mysql( |
|
|
|
ut_a(new_name != NULL); |
|
|
|
ut_ad(trx->state == TRX_STATE_ACTIVE); |
|
|
|
|
|
|
|
if (srv_created_new_raw || srv_force_recovery) { |
|
|
|
fputs("InnoDB: A new raw disk partition was initialized or\n" |
|
|
|
"InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
if (srv_force_recovery) { |
|
|
|
fputs("InnoDB: innodb_force_recovery is on: we do not allow\n" |
|
|
|
"InnoDB: database modifications by the user. Shut down\n" |
|
|
|
"InnoDB: mysqld and edit my.cnf so that newraw" |
|
|
|
" is replaced\n" |
|
|
|
"InnoDB: with raw, and innodb_force_... is removed.\n", |
|
|
|
"InnoDB: mysqld and edit my.cnf so that" |
|
|
|
"InnoDB: innodb_force_... is removed.\n", |
|
|
|
stderr); |
|
|
|
if(srv_force_recovery) { |
|
|
|
err = DB_READ_ONLY; |
|
|
|
} |
|
|
|
|
|
|
|
err = DB_READ_ONLY; |
|
|
|
goto funct_exit; |
|
|
|
|
|
|
|
} else if (row_mysql_is_system_table(new_name)) { |
|
|
|
|
|
|
|
fprintf(stderr, |
|
|
|
|