757 | | // Modifications failed, and we couldn't recover successfully. |
758 | | throw Xapian::DatabaseError("Modifications failed (" + msg + |
759 | | "), and cannot set consistent table " |
760 | | "revision numbers: " + e.get_msg()); |
| 757 | try { |
| 758 | // Get back into a consistent state, by reopening tables with old |
| 759 | // revision number. |
| 760 | open_tables(old_revision); |
| 761 | } catch (...) { |
| 762 | throw Xapian::DatabaseError("Modifications failed (" + msg + |
| 763 | "), and cannot set consistent table " |
| 764 | "revision numbers: " + e.get_msg()); |
| 765 | } |