<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 03/10/2016 05:10 PM, Roberto
Ostinelli wrote:<br>
</div>
<blockquote
cite="mid:A382D246-F2BE-45CA-A2D2-D6D02BF21B0A@widetag.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Thank you for your input.</div>
<div><br>
</div>
<div>This is interesting since the documentation [1] states:</div>
<div><br>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);">"By
passing the same "fun" as an argument to the function <span
class="bold_code" style="font-weight: bold;"><a
moz-do-not-send="true"
href="http://erlang.org/doc/man/mnesia.html#sync_dirty-2"
style="text-decoration: none;">mnesia:sync_dirty(Fun [,
Args])</a></span>, it is performed in almost the same
context as the function <span class="bold_code"
style="font-weight: bold;"><a moz-do-not-send="true"
href="http://erlang.org/doc/man/mnesia.html#async_dirty-2"
style="text-decoration: none;">mnesia:async_dirty/1,2</a></span>.
The difference is that the operations are performed
synchronously. The caller waits for the updates to be
performed on all active replicas."</span></div>
<div><br>
</div>
<div>Maybe I'm not reading this right?</div>
<div><br>
</div>
</blockquote>
I agree that those docs imply an async_dirty call doesn't wait for
anything beyond the one node. It specifically says, under
async_dirty, that, "The functions wait for the operation to be
performed on one node but not the others. If the table resides
locally, no waiting occurs."<br>
<br>
I may have misinterpreted the code I was looking at, or the docs
could be misleading. I'll wait eagerly for someone more
well-informed to come along and shed some light on the situation.<br>
</body>
</html>