[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:13 CET 2016


> +			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);
> +
> +
> +int db_virtual_async_raw_query(db_con_t *_h, const str *_s, void **_data)
> +{
> +	handle_async_t* _ah;
> +    handle_con_t * _handle;
> +    handle_set_t * _p = (handle_set_t*)_h->tail;
> +
> +	if (_s->len > 16384) {

Please define this in some header, makes code much more **readable** and **easy to change**

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


More information about the Devel mailing list