[OpenSIPS-Devel] [ opensips-Bugs-2685457 ] Return values for localcache fetch op backwards

SourceForge.net noreply at sourceforge.net
Thu Mar 12 18:28:41 CET 2009


Bugs item #2685457, was opened at 2009-03-12 13:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2685457&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Phil D'Amore (ptdamore)
Assigned to: Nobody/Anonymous (nobody)
Summary: Return values for localcache fetch op backwards

Initial Comment:
In r5294 a change was made to allow lcache_htable_fetch to return an additional code in the event of an error.

It returns -1 for error and 0 for not found.  This is inconsistent with script functions should be returning and causes script to halt if a cache entry is not found.

Attached patch switches the values for error and notfound so the script doesn't exit incorrectly. 

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2685457&group_id=232389



More information about the Devel mailing list