[OpenSIPS-Devel] [opensips] ASYNC_CHANGE_FD status + db engine async state parameter + db_virtual async (#715)

Liviu Chircu notifications at github.com
Wed Feb 17 18:37:05 CET 2016


> +		} 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);

[This](https://sourcemaking.com/files/sm/images/spagett.jpg) is all I can say about the runaway macros in `db_virtual`.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/715/files#r53200609
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160217/7349691d/attachment-0001.htm>


More information about the Devel mailing list