aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_subscr.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-11-29 14:55:12 +0100
committerDan Gudmundsson <[email protected]>2013-11-29 14:55:12 +0100
commit49799666d163a72114d7a936f6f528c3726018ae (patch)
treed3dcbb12347a28cd2529fbcadf9707af2798906d /lib/mnesia/src/mnesia_subscr.erl
parent0279799e4f3d2404f657863d04d8c1d6f6c08985 (diff)
downloadotp-49799666d163a72114d7a936f6f528c3726018ae.tar.gz
otp-49799666d163a72114d7a936f6f528c3726018ae.tar.bz2
otp-49799666d163a72114d7a936f6f528c3726018ae.zip
mnesia: Fix dirty_update bug when subscriber exists
dirty_update_counter returned the wrong value when a subscriber existed and no events was sent. Thanks Anton Ryabkov.
Diffstat (limited to 'lib/mnesia/src/mnesia_subscr.erl')
-rw-r--r--lib/mnesia/src/mnesia_subscr.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_subscr.erl b/lib/mnesia/src/mnesia_subscr.erl
index 8f78dc55e8..9272211ad2 100644
--- a/lib/mnesia/src/mnesia_subscr.erl
+++ b/lib/mnesia/src/mnesia_subscr.erl
@@ -204,7 +204,9 @@ what(Tab, Tid, Obj, write, undefined) ->
{mnesia_table_event, {write, Tab, Obj, Old, Tid}};
{'EXIT', _} ->
ignore
- end.
+ end;
+what(Tab, Tid, Obj, write, Old) ->
+ {mnesia_table_event, {write, Tab, Obj, Old, Tid}}.
deliver(_, ignore) ->
ok;