Skip to content

Commit

Permalink
Ignoring the connection error during nginx starting up.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwanami committed Nov 28, 2011
1 parent 0fb612e commit 65b191c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngx_http_gridfs_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,10 @@ static ngx_int_t ngx_http_gridfs_init_worker(ngx_cycle_t* cycle) {

for (i = 0; i < gridfs_main_conf->loc_confs.nelts; i++) {
if (ngx_http_mongo_add_connection(cycle, gridfs_loc_confs[i]) == NGX_ERROR) {
return NGX_ERROR;
return NGX_OK;
}
if (ngx_http_mongo_authenticate(cycle->log, gridfs_loc_confs[i]) == NGX_ERROR) {
return NGX_ERROR;
return NGX_OK;
}
}

Expand Down

0 comments on commit 65b191c

Please sign in to comment.