浏览代码

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