<div dir="ltr">Hi,<div><br></div><div>When an ETS table is given away through an heir, the receiving process (of the ETS table) receives a message of the form</div><div><br></div><div><div>{'ETS-TRANSFER',tid(),FromPid,HeirData}</div></div><div><br></div><div>The `HeirData` field allows you to send auxiliary information through to the heir when the transfer happens. For instance some information about the ETS table in question. Usually heir-transfer happens when a process crashes, so you may not get a chance to send extra information through a normal message. Furthermore, you would have to align two messages to each other in the recevier which tend to be more complicated.</div><div> </div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, May 21, 2017 at 1:05 PM yuzhu chen <<a href="mailto:billcyz@gmail.com">billcyz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When setting up ets heir, I found "HeirData" is included in the heir option <strong style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="m_-6753851695978088574gmail-code" style="font-family:Courier,monospace;font-weight:normal">{heir,Pid,HeirData}</span></strong>, I'm confused why it is needed. Can anyone tell me the reason of it? Is there any direct way to setup ets heir when the ets table is created?</div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>