<p>In <a href="https://github.com/OpenSIPS/opensips/pull/715#discussion_r53200609">modules/db_virtual/dbase.c</a>:</p>
<pre style='color:#555'>&gt; +                } else {                                                                \
&gt; +                        LM_DBG(&quot;flags2 = %i\n&quot;, p-&gt;con_list[CURRCON(__ah)].flags);          \
&gt; +                        if ((--__ah-&gt;cons_rem) == 0) {                                      \
&gt; +                                LM_ERR(&quot;All databases failed!! No hope for you!\n&quot;);            \
&gt; +                                return -1;                                                      \
&gt; +                        }                                                                   \
&gt; +                                                                                \
&gt; +                        /* try next*/                                                       \
&gt; +                        rc = -1;                                                            \
&gt; +                        CURRCON(__ah)  = (CURRCON(__ah)+1)%p-&gt;size;                         \
&gt; +                }                                                                       \
&gt; +                LM_DBG(&quot;curent_con = %i\n&quot;, CURRCON(__ah));                             \
&gt; +        } while ((__ah)-&gt;cons_rem); /* should never exit here */                    \
&gt; +                                                                                \
&gt; +        return rc;                                                                  \
&gt; +}while (0);
</pre>
<p><a href="https://sourcemaking.com/files/sm/images/spagett.jpg">This</a> is all I can say about the runaway macros in <code>db_virtual</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/715/files#r53200609">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcie4Taxy9_jtxn64RRtzTtJQTuLP9ks5plKdBgaJpZM4Gt7dV.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/715/files#r53200609"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>