<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.4">
</HEAD>
<BODY>
Hi,<BR>
<BR>
This kind-of makes sense because the pua module only deals with one table, when using a normal DB module, having set the table name once you never need to do it again.<BR>
<BR>
If db_cluster() is different perhaps it'd be good to make it explicitly check for this and log an error in this case?<BR>
<BR>
The pua DB is accessed in several different files so if this change is made all files will need to be checked and updated.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Thu, 2012-09-27 at 17:14 +0200, Daniel-Constantin Mierla wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

a quick look over the pua_db.c file shows that dbf.use_table(...) is not 
used before doing the queries. That is required for db_cluster. Perhaps 
someone that is able to test the module can add the fix quickly -- I 
cannot do it for the next few days.

Cheers,
Daniel


On 9/27/12 4:58 PM, Juha Heinanen wrote:
&gt; Peter Dunkley writes:
&gt;
&gt;&gt; &gt;From a quick look at the code this could happen if the table name or
&gt;&gt; length was a bad pointer.
&gt; peter,
&gt;
&gt; i didn't change table names when i turned on cluster.  i just changed
&gt; this:
&gt;
&gt; modparam(&quot;pua&quot;, &quot;db_url&quot;, &quot;cluster://pres_serv_cluster&quot;)
&gt;
&gt; crash happens on timer before presence server has got any requests.
&gt;
&gt; without db_cluster, presence works fine. have you tried presence with
&gt; db_cluster?
&gt;
&gt; -- juha
&gt;
&gt; _______________________________________________
&gt; sr-dev mailing list
&gt; <A HREF="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</A>
&gt; <A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</A>

</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>