<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><font face="Arial, sans-serif"><span style="font-size:14px;line-height:18px;white-space:pre-wrap">Thought about to add this functionality to the module. If this approach seems to be more correct, then I can move my code in a module, but, in my opinion, it is not very correct.</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_extra"><div dir="ltr"><span style="line-height:18.2000007629395px;color:rgb(102,102,102);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:small">________________________________</span><br></div></div></div><div class="gmail_extra"><div><div dir="ltr"><div><font color="#666666" face="Arial, Tahoma, Verdana, sans-serif"><span style="line-height:18.2000007629395px">Andrey Rybkin</span></font></div><div><span style="line-height:18.2000007629395px;color:rgb(102,102,102);font-family:Arial,Tahoma,Verdana,sans-serif">JID: </span><a href="mailto:rybkin.a@bks.tv" target="_blank" style="line-height:18.2000007629395px;font-family:Arial,Tahoma,Verdana,sans-serif">rybkin.a@bks.tv</a><br></div><div><font face="Arial, Tahoma, Verdana, sans-serif" color="#666666"><span style="line-height:18.2000007629395px">E-Mail: <a href="mailto:rybkin.a@bks.tv" target="_blank">rybkin.a@bks.tv</a></span></font></div><div><br></div></div></div><div class="gmail_quote">2014-10-28 16:46 GMT+03:00 Alex Hermann <span dir="ltr"><<a href="mailto:alex@speakup.nl" target="_blank">alex@speakup.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Tuesday 28 October 2014, Андрей Рыбкин wrote:<br>
> Module DMQ_SYNC:<br>
>   The module add replication between multiple servers via DMQ module.<br>
>    Currently only usrloc replications.<br>
<br>
</span>I think some decision should be made on where syncing code should be placed.<br>
The htable module has dmq sync integrated, now you introduce a module<br>
dedicated to syncing via dmq.<br>
<br>
I have no strong preference, but am against different implementations<br>
depending on the module. So i would prefer either dmq-sync integrated into<br>
each module, or one dmq_sync module. Not a combination of both.<br>
<span class=""><br>
<br>
> TODO:<br>
>  1.  dialog replications.<br>
>  2.  bugfixes.<br>
><br>
> Patch fo DMQ:<br>
>  1. add  find_dmq_node_uri function  to API<br>
>      dmq_node_t* find_dmq_node_uri(str* uri)<br>
<br>
>  2. add  init_callback  to  dmq_peer<br>
>      int init_callback()<br>
<br>
</span>Except for the broken indenting, this seems equal to my code. If it is mine,<br>
and the code is useful, please cherry-pick the relevant commits so authorship<br>
is retained.<br>
<span class=""><font color="#888888"><br>
--<br>
Greetings,<br>
<br>
Alex Hermann<br>
<br>
</font></span></blockquote></div><br></div></div>