Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix building against nginx without the --with-debug option specified.

  • Loading branch information...
commit 357d89d3f272b2ebd9249ef7a0899123540df9e6 1 parent 7171df8
Philip K. Warren authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  ngx_http_upstream_fair_module.c
View
2  ngx_http_upstream_fair_module.c
@@ -645,6 +645,7 @@ ngx_http_upstream_init_fair(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *us)
static void
ngx_http_upstream_fair_update_nreq(ngx_http_upstream_fair_peer_data_t *fp, int delta, ngx_log_t *log)
{
+#if (NGX_DEBUG)
ngx_uint_t nreq;
ngx_uint_t total_nreq;
@@ -655,6 +656,7 @@ ngx_http_upstream_fair_update_nreq(ngx_http_upstream_fair_peer_data_t *fp, int d
"[upstream_fair] nreq for peer %ui @ %p/%p now %d, total %d, delta %d",
fp->current, fp->peers, fp->peers->peer[fp->current].shared, nreq,
total_nreq, delta);
+#endif
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.