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

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jan 31 17:55:06 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11896 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11896
Category:                   Applications/app_queue
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     new
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:              01-31-2008 17:55 CST
====================================================================== 
Summary:                    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.
====================================================================== 

---------------------------------------------------------------------- 
 atis - 01-31-08 17:55  
---------------------------------------------------------------------- 
in last patch i replaced  if(str) with  if (!ast_strlen_zero(str)) within
rt_handle_member_record() 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-31-08 17:55  atis           Note Added: 0081550                          
======================================================================




More information about the asterisk-bugs mailing list