Преглед на файлове

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 години
родител
ревизия
b48bc0977c
променени са 1 файла, в които са добавени 0 реда и са изтрити 15 реда
  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++)
 	{