Module: sip-router
Branch: lazedo/kazoo
Commit: dae74e974a028082a3250805da83223220123c10
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dae74e9…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: Wed Sep 10 15:23:45 2014 +0100
proposed change for dbtext query results.
this behaviour was observed by interacting with module presence.
presentity clean runs from timer every 6 secs.
if the first run returns a large set of rows, it iterates all rows doing
some notifications and deleting the presentity.
if it takes more then 6 secs to complete, the next run will override the
results internal structure pointer maintained in the connection level.
the proposed patch, maintains the query result internal structure within
the result, using the ptr field for that.
---
modules/db_text/dbt_api.c | 86 ++++++++++++++++++++-----------------------
modules/db_text/dbt_api.h | 3 +-
modules/db_text/dbt_base.c | 27 +++++++-------
modules/db_text/dbt_res.c | 4 ++-
modules/db_text/dbt_res.h | 6 ---
5 files changed, 59 insertions(+), 67 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=dae…