diff options
author | Dan Gudmundsson <[email protected]> | 2017-01-26 12:43:36 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-01-30 15:39:37 +0100 |
commit | 230358701da9764fa4c637e9e781668276f14938 (patch) | |
tree | 1980d806b64e45f996f7188116b75ebf7550c98d /lib/mnesia/src/mnesia_event.erl | |
parent | bca5bf5a2d68a0e9ca681363a8943809c4751950 (diff) | |
download | otp-230358701da9764fa4c637e9e781668276f14938.tar.gz otp-230358701da9764fa4c637e9e781668276f14938.tar.bz2 otp-230358701da9764fa4c637e9e781668276f14938.zip |
Fixed crash when a table was deleted during checkpoint traversal
Set fixtable false will fail on deleted tables, catch that and also
report checkpoint deactivate error, so user can see why checkpoint
was deactivated and backup fails.
Diffstat (limited to 'lib/mnesia/src/mnesia_event.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_event.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_event.erl b/lib/mnesia/src/mnesia_event.erl index 7320d381ea..6f7531245f 100644 --- a/lib/mnesia/src/mnesia_event.erl +++ b/lib/mnesia/src/mnesia_event.erl @@ -114,7 +114,8 @@ handle_table_event({Oper, Record, TransId}, State) -> handle_system_event({mnesia_checkpoint_activated, _Checkpoint}, State) -> {ok, State}; -handle_system_event({mnesia_checkpoint_deactivated, _Checkpoint}, State) -> +handle_system_event({mnesia_checkpoint_deactivated, Checkpoint}, State) -> + report_error("Checkpoint '~p' has been deactivated, last table copy deleted.\n",[Checkpoint]), {ok, State}; handle_system_event({mnesia_up, Node}, State) -> |