[sr-dev] git:master: modules_k/rls: the checks on the number of records returned from the DB when updating RLS subscriptions from the configuration file while in db only mode were too strict

Peter Dunkley peter.dunkley at crocodile-rcs.com
Fri Oct 21 16:59:16 CEST 2011


Module: sip-router
Branch: master
Commit: b48bc0977c98e3ee71f4bc44b3f7ed2e1eafce26
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b48bc0977c98e3ee71f4bc44b3f7ed2e1eafce26

Author: pd <peter.dunkley at crocodile-rcs.com>
Committer: pd <peter.dunkley at crocodile-rcs.com>
Date:   Fri Oct 21 15:53:33 2011 +0100

modules_k/rls: the checks on the number of records returned from the DB when updating RLS subscriptions from the configuration file while in db only mode were too strict

---

 modules_k/rls/rls_db.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/modules_k/rls/rls_db.c b/modules_k/rls/rls_db.c
index 9c35a28..8adca7b 100644
--- a/modules_k/rls/rls_db.c
+++ b/modules_k/rls/rls_db.c
@@ -488,21 +488,6 @@ int update_all_subs_rlsdb( str *from_user, str *from_domain, str *evt )
 
 	nr_rows = RES_ROW_N(result);
 
-	if (nr_rows == 0)
-	{
-		/* no match */ 
-		LM_ERR( "update_all_subs_rlsdb: NO MATCH\n" );
-		rls2_dbf.free_result(rls2_db, result);
-		return(-1);
-	}
-
-	if (nr_rows != 1)
-	{
-		LM_ERR( "update_all_subs_rlsdb: TOO MANY MATCHES=%d\n", nr_rows);
-		rls2_dbf.free_result(rls2_db, result);
-		return(-1);
-	}
-
 	/* get the results and fill in return data structure */
 	for (loop=0; loop <nr_rows; loop++)
 	{




More information about the sr-dev mailing list