<p>In <a href="https://github.com/OpenSIPS/opensips/pull/715#discussion_r53200609">modules/db_virtual/dbase.c</a>:</p>
<pre style='color:#555'>> +                } else { \
> +                        LM_DBG("flags2 = %i\n", p->con_list[CURRCON(__ah)].flags); \
> +                        if ((--__ah->cons_rem) == 0) { \
> +                                LM_ERR("All databases failed!! No hope for you!\n"); \
> +                                return -1; \
> +                        } \
> + \
> +                        /* try next*/ \
> +                        rc = -1; \
> +                        CURRCON(__ah) = (CURRCON(__ah)+1)%p->size; \
> +                } \
> +                LM_DBG("curent_con = %i\n", CURRCON(__ah)); \
> +        } while ((__ah)->cons_rem); /* should never exit here */ \
> + \
> +        return rc; \
> +}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;">—<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>