[Groonga-commit] groonga/groonga [master] httpd: return database open error

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 24日 (火) 18:42:16 JST


Kouhei Sutou	2012-07-24 18:42:16 +0900 (Tue, 24 Jul 2012)

  New Revision: c6feaaddfe570fd0f43c7031ff7375246725dca7
  https://github.com/groonga/groonga/commit/c6feaaddfe570fd0f43c7031ff7375246725dca7

  Log:
    httpd: return database open error

  Modified files:
    src/nginx-module/ngx_http_groonga_module.c

  Modified: src/nginx-module/ngx_http_groonga_module.c (+2 -1)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-07-24 18:44:28 +0900 (2b8bd5b)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-07-24 18:42:16 +0900 (2d9157e)
@@ -436,11 +436,12 @@ ngx_http_groonga_init_process(ngx_cycle_t *cycle)
   http_conf =
     (ngx_http_conf_ctx_t *)ngx_get_conf(cycle->conf_ctx, ngx_http_module);
   data.log = cycle->log;
+  data.rc = NGX_OK;
   ngx_http_groonga_each_loc_conf(http_conf,
                                  ngx_http_groonga_open_database_callback,
                                  &data);
 
-  return NGX_OK;
+  return data.rc;
 }
 
 static void
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index