Browse Source

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

pd 14 years ago
parent
commit
b48bc0977c
1 changed files with 0 additions and 15 deletions
  1. 0 15
      modules_k/rls/rls_db.c

+ 0 - 15
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++)
 	{