Browse code

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 authored on 21/10/2011 14:53:33
Showing 1 changed files
... ...
@@ -488,21 +488,6 @@ int update_all_subs_rlsdb( str *from_user, str *from_domain, str *evt )
488 488
 
489 489
 	nr_rows = RES_ROW_N(result);
490 490
 
491
-	if (nr_rows == 0)
492
-	{
493
-		/* no match */ 
494
-		LM_ERR( "update_all_subs_rlsdb: NO MATCH\n" );
495
-		rls2_dbf.free_result(rls2_db, result);
496
-		return(-1);
497
-	}
498
-
499
-	if (nr_rows != 1)
500
-	{
501
-		LM_ERR( "update_all_subs_rlsdb: TOO MANY MATCHES=%d\n", nr_rows);
502
-		rls2_dbf.free_result(rls2_db, result);
503
-		return(-1);
504
-	}
505
-
506 491
 	/* get the results and fill in return data structure */
507 492
 	for (loop=0; loop <nr_rows; loop++)
508 493
 	{