diff options
author | Dan Gudmundsson <[email protected]> | 2019-02-25 11:52:55 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2019-02-25 11:52:55 +0100 |
commit | 593eec697ab26a048f0407494da3c0d5b481b3fb (patch) | |
tree | 179167180d98bb24b601c9cc07a127357f620d5e | |
parent | ae62af76cec483921b361396fb6ff042f72e3002 (diff) | |
parent | 7e21a18877374cfaef1fe839a5cd78599eb2d9d6 (diff) | |
download | otp-593eec697ab26a048f0407494da3c0d5b481b3fb.tar.gz otp-593eec697ab26a048f0407494da3c0d5b481b3fb.tar.bz2 otp-593eec697ab26a048f0407494da3c0d5b481b3fb.zip |
Merge branch 'maint'
* maint:
mnesia: Avoid raise in overload reports
-rw-r--r-- | lib/mnesia/src/mnesia_dumper.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mnesia/src/mnesia_dumper.erl b/lib/mnesia/src/mnesia_dumper.erl index 964f1f5b7d..8ab11be2d3 100644 --- a/lib/mnesia/src/mnesia_dumper.erl +++ b/lib/mnesia/src/mnesia_dumper.erl @@ -67,10 +67,10 @@ get_log_writes() -> incr_log_writes() -> Left = mnesia_lib:incr_counter(trans_log_writes_left, -1), if - Left > 0 -> - ignore; + Left =:= 0 -> + adjust_log_writes(true); true -> - adjust_log_writes(true) + ignore end. adjust_log_writes(DoCast) -> |