Skip to content

Commit

Permalink
bugfix: fixed compilation error with nginx 1.7.5+ because nginx 1.7.5…
Browse files Browse the repository at this point in the history
…+ changes the API in the events subsystem.
  • Loading branch information
agentzh committed Sep 17, 2014
1 parent 1d8e007 commit f9479fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ngx_postgres_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,19 @@ ngx_postgres_upstream_free_connection(ngx_log_t *log, ngx_connection_t *c,
}
}

#if defined(nginx_version) && nginx_version >= 1007005
if (rev->posted) {
#else
if (rev->prev) {
#endif
ngx_delete_posted_event(rev);
}

#if defined(nginx_version) && nginx_version >= 1007005
if (wev->posted) {
#else
if (wev->prev) {
#endif
ngx_delete_posted_event(wev);
}

Expand Down

0 comments on commit f9479fb

Please sign in to comment.