浏览代码

- removed bkl_hit_cnt stat from dst_blacklist_add_to function

Vladimir Marek 18 年之前
父节点
当前提交
c2b672e7f3
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      dst_blacklist.c

+ 0 - 6
dst_blacklist.c

@@ -764,12 +764,6 @@ int dst_blacklist_add_to(unsigned char err_flags,  struct dest_info* si,
 	if (unlikely (blacklist_run_hooks(&blst_add_cb, si, &err_flags, msg) ==
 					DST_BLACKLIST_DENY))
 		return 0;
-#endif
-#ifdef USE_DST_BLACKLIST_STATS
-	/* if hooks are defined then increment hit counter only when a
-	 * destination is added into blacklist
-	 */
-        dst_blacklist_stats[process_no].bkl_hit_cnt++;
 #endif
 	su2ip_addr(&ip, &si->to);
 	return dst_blacklist_add_ip(err_flags, si->proto, &ip,