Skip to content

Commit

Permalink
Compatibility with nginx API 0.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Kholodkov committed Sep 17, 2009
1 parent e296d16 commit 65cc81f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ngx_http_mogilefs_module.c
Expand Up @@ -7,6 +7,7 @@
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <nginx.h>

typedef enum {
NGX_MOGILEFS_MAIN,
Expand Down Expand Up @@ -355,6 +356,10 @@ ngx_http_mogilefs_handler(ngx_http_request_t *r)
return NGX_ERROR;
}

#if defined nginx_version && nginx_version >= 8011
r->main->count++;
#endif

ngx_http_upstream_init(r);

return NGX_DONE;
Expand Down

0 comments on commit 65cc81f

Please sign in to comment.