Kouhei Sutou
null+****@clear*****
Fri Aug 7 15:31:59 JST 2015
Kouhei Sutou 2015-08-07 15:31:59 +0900 (Fri, 07 Aug 2015) New Revision: 0f8670591a9d031942dbe8e2011a80555d668258 https://github.com/groonga/groonga/commit/0f8670591a9d031942dbe8e2011a80555d668258 Message: groonga-httpd: support grn_thread_get_count() Modified files: src/httpd/nginx-module/ngx_http_groonga_module.c Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+8 -0) =================================================================== --- src/httpd/nginx-module/ngx_http_groonga_module.c 2015-08-07 14:49:13 +0900 (b510329) +++ src/httpd/nginx-module/ngx_http_groonga_module.c 2015-08-07 15:31:59 +0900 (8b83ec0) @@ -133,6 +133,12 @@ ngx_str_is_custom_path(ngx_str_t *string) return GRN_TRUE; } +static uint32_t +ngx_http_groonga_get_thread_count(void *data) +{ + return 1; +} + static void ngx_http_groonga_write_fd(ngx_fd_t fd, u_char *buffer, size_t buffer_size, @@ -1485,6 +1491,8 @@ ngx_http_groonga_init_process(ngx_cycle_t *cycle) ngx_http_conf_ctx_t *http_conf; ngx_http_groonga_database_callback_data_t data; + grn_thread_set_get_count_func(ngx_http_groonga_get_thread_count, NULL); + rc = grn_init(); if (rc != GRN_SUCCESS) { return NGX_ERROR; -------------- next part -------------- HTML����������������������������...Download