| Index: sql/recovery.cc
|
| diff --git a/sql/recovery.cc b/sql/recovery.cc
|
| index 4308129d726467f0a868e721d31d09e66bbf96a7..6691d07b9aa88c698d9496da85e26977292438fc 100644
|
| --- a/sql/recovery.cc
|
| +++ b/sql/recovery.cc
|
| @@ -141,6 +141,9 @@ Recovery::Recovery(Connection* connection)
|
| if (db_->page_size_)
|
| recover_db_.set_page_size(db_->page_size_);
|
|
|
| + // Files with I/O errors cannot be safely memory-mapped.
|
| + recover_db_.set_mmap_disabled();
|
| +
|
| // TODO(shess): This may not handle cases where the default page
|
| // size is used, but the default has changed. I do not think this
|
| // has ever happened. This could be handled by using "PRAGMA
|
|
|