[asterisk-bugs] [Asterisk 0011896]: [patch] Optimized update_realtime_member_field function

noreply at bugs.digium.com noreply at bugs.digium.com
Wed May 21 13:25:16 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11896 
====================================================================== 
Reported By:                atis
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   11896
Category:                   Applications/app_queue
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 101580 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-31-2008 17:21 CST
Last Modified:              05-21-2008 13:25 CDT
====================================================================== 
Summary:                    [patch] Optimized update_realtime_member_field
function
Description: 
Currently update_realtime_member_field does first load to find out current
uniqueid of member by interface and queue name, and only then updates
corresponding member record by uniqueid.

This can be optimized by storing uniqueid in member structure, making
update_realtime_member_field much more simpler and eliminating extra access
to realtime engine.

It won't break current systems (without uniqueid), as they are not
updating anyway.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 05-21-08 13:25  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 117517

U   trunk/apps/app_queue.c

------------------------------------------------------------------------
r117517 | mmichelson | 2008-05-21 13:24:54 -0500 (Wed, 21 May 2008) | 14
lines

Optimize the update_realtime_member_field function by not having
to query the database for the member and instead using a cached
uniqueid. 

Special thanks to atis for creating this and for keeping it up
to date with necessary changes

(closes issue http://bugs.digium.com/view.php?id=11896)
Reported by: atis
Patches:
      realtime_uniqueid_v6.patch uploaded by atis (license 242)
Tested by: atis


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=117517 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-21-08 13:25  svnbot         Note Added: 0087134                          
======================================================================




More information about the asterisk-bugs mailing list